UV_HTTP_TIMEOUT=300 防止大包(numpy/pandas/cryptography)下载超时
This commit is contained in:
+3
-3
@@ -10,9 +10,9 @@ COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/uv
|
|||||||
COPY backend/pyproject.toml .
|
COPY backend/pyproject.toml .
|
||||||
COPY backend/.env.example .
|
COPY backend/.env.example .
|
||||||
|
|
||||||
# Create venv and install deps
|
# Create venv and install deps — increase timeout for slow networks
|
||||||
RUN uv venv /opt/venv && \
|
RUN UV_HTTP_TIMEOUT=300 uv venv /opt/venv && \
|
||||||
uv pip install --python /opt/venv/bin/python \
|
UV_HTTP_TIMEOUT=300 uv pip install --python /opt/venv/bin/python \
|
||||||
--index-url https://mirrors.aliyun.com/pypi/simple/ \
|
--index-url https://mirrors.aliyun.com/pypi/simple/ \
|
||||||
--extra-index-url https://pypi.org/simple/ \
|
--extra-index-url https://pypi.org/simple/ \
|
||||||
"fastapi>=0.104.0" \
|
"fastapi>=0.104.0" \
|
||||||
|
|||||||
Reference in New Issue
Block a user