From 608574b49bccda663475e369ab5ca53afefddcec Mon Sep 17 00:00:00 2001 From: claude_dev Date: Sat, 1 Aug 2026 19:07:52 +0800 Subject: [PATCH] =?UTF-8?q?fix(docker):=20Dockerfile=20pip=20install=20?= =?UTF-8?q?=E5=AF=B9=E9=BD=90=E6=B8=85=E5=8D=8E=E6=BA=90(=E4=B8=8E=20Docke?= =?UTF-8?q?rfile.test+=E8=BF=90=E8=A1=8C=E6=97=B6env=E4=B8=80=E8=87=B4)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 原用默认 pypi.org,国内构建拉 torch 等大包极慢易超时;对齐项目标准清华源 --- docker/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 8e2bb54..ff855c8 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -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/