From 6f8c3a09afdd1bdcf6046112ed8cfdfae0a1e99a Mon Sep 17 00:00:00 2001 From: plf1996 Date: Thu, 18 Jun 2026 14:49:57 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=A2=9E=E5=8A=A0=20uv=20pip=20install?= =?UTF-8?q?=20=E8=B6=85=E6=97=B6=E5=88=B0=20300s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit UV_HTTP_TIMEOUT=300 防止大包(numpy/pandas/cryptography)下载超时 --- backend/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/Dockerfile b/backend/Dockerfile index 5df9a86..12e6e05 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -10,9 +10,9 @@ COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/uv COPY backend/pyproject.toml . COPY backend/.env.example . -# Create venv and install deps -RUN uv venv /opt/venv && \ - uv pip install --python /opt/venv/bin/python \ +# Create venv and install deps — increase timeout for slow networks +RUN UV_HTTP_TIMEOUT=300 uv venv /opt/venv && \ + UV_HTTP_TIMEOUT=300 uv pip install --python /opt/venv/bin/python \ --index-url https://mirrors.aliyun.com/pypi/simple/ \ --extra-index-url https://pypi.org/simple/ \ "fastapi>=0.104.0" \