fix: 增加 uv HTTP 超时时间配置,避免依赖安装超时失败
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user