灾容datakeep项目推送

This commit is contained in:
2026-02-09 18:07:46 +08:00
commit c2ffb3c8b8
17 changed files with 836 additions and 0 deletions

19
backend/Dockerfile Normal file
View File

@@ -0,0 +1,19 @@
FROM python:3.10-slim
# 安装同步所需的 MySQL 客户端工具
RUN apt-get update && apt-get install -y \
default-mysql-client \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY app.py .
# 创建数据持久化目录
RUN mkdir -p /app/datakeep_data
EXPOSE 8000
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]