fix(docker): Dockerfile pip install 对齐清华源(与 Dockerfile.test+运行时env一致)

原用默认 pypi.org,国内构建拉 torch 等大包极慢易超时;对齐项目标准清华源
This commit is contained in:
2026-08-01 19:07:52 +08:00
parent e64b5906da
commit 608574b49b
+2 -2
View File
@@ -45,8 +45,8 @@ RUN mkdir -p /app/data /app/logs /app/config /app/temp
# 复制 requirements 并安装依赖
COPY requirements-docker.txt .
RUN pip install --no-cache-dir --upgrade pip && \
pip install --no-cache-dir -r requirements-docker.txt
RUN pip install --no-cache-dir --upgrade pip -i https://pypi.tuna.tsinghua.edu.cn/simple && \
pip install --no-cache-dir -r requirements-docker.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
# 复制应用代码(包含所有 sanguo 模块)
COPY sanguo_web/ /app/sanguo_web/