初始化

This commit is contained in:
zg
2026-07-15 16:08:17 +08:00
parent f0d70aded4
commit 4e0057ece5
89 changed files with 13512 additions and 0 deletions

10
backend/Dockerfile Normal file
View File

@@ -0,0 +1,10 @@
FROM python:3.12-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -i https://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com -r requirements.txt
COPY app.py config.py models.py logger.py init_db.py file_service.py ./
COPY routes/ ./routes/
COPY middleware/ ./middleware/
RUN mkdir -p /data/mokee/mokeetext/logs && mkdir -p static
EXPOSE 4006
CMD sh -c "python init_db.py && uvicorn app:app --host 0.0.0.0 --port 4006"