diff --git a/infra/docker/ci.Dockerfile b/infra/docker/ci.Dockerfile index 7eb697296..83e3fa486 100644 --- a/infra/docker/ci.Dockerfile +++ b/infra/docker/ci.Dockerfile @@ -2,12 +2,17 @@ FROM git.xiaoxiajianji.com/xiaoxia/base/python:3.12-slim ENV PIP_DISABLE_PIP_VERSION_CHECK=1 \ PIP_NO_CACHE_DIR=0 \ - PIP_INDEX_URL=https://pypi.org/simple \ + PIP_INDEX_URL=https://mirrors.aliyun.com/pypi/simple/ \ + PIP_TRUSTED_HOST=mirrors.aliyun.com \ VIRTUAL_ENV=/opt/xiaoxia-ci-venv \ PATH=/opt/xiaoxia-ci-venv/bin:$PATH WORKDIR /workspace +# 系统依赖:curl用于CI checkout步骤下载代码archive +RUN apt-get update && apt-get install -y --no-install-recommends curl \ + && rm -rf /var/lib/apt/lists/* + COPY requirements-dev.txt ./ RUN python -m venv "$VIRTUAL_ENV" \