Skip to content
  • Projects
  • Groups
  • Snippets
  • Help

王小舟 / ask_data_llm_middleware

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Settings
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • ask_data_llm_middleware
  • docker
  • Dockerfile.sync
  • imwangxiaozhou's avatar
    feat: 搭建门店与品牌数据同步及搜索服务基础框架 · 77b13f65 ...
    实现门店数据定时同步:从外部API拉取数据,去重后写入SQLite FTS5索引
    实现品牌数据定时同步:从MySQL拉取品牌分组,写入SQLite FTS5索引
    提供FastAPI全文搜索接口,支持门店和品牌的模糊匹配
    封装公共基础设施:配置管理、日志轮转、SQLite数据库兼容处理
    添加单元测试、启停脚本、Docker部署配置与项目设计文档
    删除旧的merchants_fts.db数据库文件
    imwangxiaozhou committed Jun 03, 2026
    77b13f65 Browse Files
Dockerfile.sync 364 Bytes
RawBlameHistoryPermalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
FROM python:3.10-slim

WORKDIR /app

RUN apt-get update && apt-get install -y --no-install-recommends \
    gcc \
    && rm -rf /var/lib/apt/lists/*

COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

RUN pip install --no-cache-dir pysqlite3-binary

COPY . .

RUN mkdir -p data logs

ENV PYTHONPATH=/app

CMD ["python", "bin/run_sync.py"]