添加了依赖安装的代理

This commit is contained in:
carry 2025-02-19 14:41:05 +08:00
parent 69a3032102
commit 2f8e547e03

View File

@ -1,5 +1,5 @@
# 使用Python官方镜像 # 使用Python官方镜像
FROM python:3.9-slim FROM python:3.11-slim
# 设置工作目录 # 设置工作目录
WORKDIR /app WORKDIR /app
@ -8,7 +8,7 @@ WORKDIR /app
COPY requirements.txt . 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 . . COPY . .