chore(docker): 修复docker-compose.yml中不一致的数据库驱动和docker容器部署过程中的依赖问题

This commit is contained in:
jimmy-sketch
2025-07-26 19:34:54 +08:00
parent 8d6b5a882d
commit 9ceacd9771
3 changed files with 738 additions and 59 deletions

View File

@@ -1,7 +1,7 @@
FROM ghcr.io/astral-sh/uv:python3.11-bookworm-slim
FROM ghcr.io/astral-sh/uv:python3.12-bookworm-slim
WORKDIR /app
ENV UV_PROJECT_ENVIRONMENT venv
ENV UV_PROJECT_ENVIRONMENT=syncvenv
# 安装系统依赖
RUN apt-get update && apt-get install -y \
@@ -16,7 +16,6 @@ COPY pyproject.toml .
COPY requirements.txt .
# 安装Python依赖
RUN uv sync
RUN pip install -r requirements.txt
# 复制应用代码