fix: 增加 uv pip install 超时到 300s
GraphRAG CI/CD / build-and-deploy (push) Failing after 19m6s

UV_HTTP_TIMEOUT=300 防止大包(numpy/pandas/cryptography)下载超时
This commit is contained in:
2026-06-18 14:49:57 +08:00
parent 719d8978b5
commit 6f8c3a09af
+3 -3
View File
@@ -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" \