diff --git a/Dockerfile b/Dockerfile index 5cb7d1e..47f904a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # 使用Python官方镜像 -FROM python:3.9-slim +FROM python:3.11-slim # 设置工作目录 WORKDIR /app @@ -8,7 +8,7 @@ WORKDIR /app COPY requirements.txt . # 安装依赖 -RUN pip install --no-cache-dir -r requirements.txt +RUN pip install --no-cache-dir -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple # 复制项目文件 COPY . .