fix: 增加 uv HTTP 超时时间配置,避免依赖安装超时失败

This commit is contained in:
zhenghu
2026-04-13 16:12:21 +08:00
parent c50bf68612
commit c3185cea33

View File

@@ -16,7 +16,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
COPY pyproject.toml justfile uv.lock ./
# 配置 uv 使用阿里云镜像源(通过环境变量)
ENV UV_INDEX_URL=https://mirrors.aliyun.com/pypi/simple/
ENV UV_INDEX_URL=https://mirrors.aliyun.com/pypi/simple/ \
UV_HTTP_TIMEOUT=120
# 安装 Python 依赖(使用 uv锁定版本
RUN uv sync --frozen --no-dev