From 90a39d74ff2fdeeeaa29955adbf54186d2865b2e Mon Sep 17 00:00:00 2001 From: xiaoxia Date: Fri, 31 Jul 2026 21:56:43 +0800 Subject: [PATCH] =?UTF-8?q?fix(ci):=20ci-base=E9=95=9C=E5=83=8F=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0curl=EF=BC=8C=E4=BF=AE=E5=A4=8Dcheckout=E6=AD=A5?= =?UTF-8?q?=E9=AA=A4=E9=9D=99=E9=BB=98=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ci-base镜像缺少curl导致checkout步骤(curl|bash)静默失败, 所有后续步骤因代码未检出而失败。添加curl安装并使用阿里云pip镜像加速构建。 --- infra/docker/ci.Dockerfile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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" \