fix(docker): Dockerfile pip install 对齐清华源(与 Dockerfile.test+运行时env一致)
原用默认 pypi.org,国内构建拉 torch 等大包极慢易超时;对齐项目标准清华源
This commit is contained in:
+2
-2
@@ -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/
|
||||
|
||||
Reference in New Issue
Block a user