From 162f7ab94e226b9f5e04ea5cf695e1546b46c0ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BF=9F=E4=BA=8C=E8=BF=9C?= Date: Fri, 3 Apr 2026 22:12:21 +0800 Subject: [PATCH] =?UTF-8?q?feat=20:=20=E8=B0=83=E6=95=B4=E6=B5=81=E6=B0=B4?= =?UTF-8?q?=E7=BA=BF=E6=9E=84=E5=BB=BA=E8=AE=BE=E7=BD=AE=E9=98=BF=E9=87=8C?= =?UTF-8?q?=E4=BA=91=E9=95=9C=E5=83=8F=E6=BA=90=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scanner/Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scanner/Dockerfile b/scanner/Dockerfile index 46774a16..87fb390d 100644 --- a/scanner/Dockerfile +++ b/scanner/Dockerfile @@ -1,4 +1,5 @@ -FROM python:3.11-alpine +# 使用阿里云容器镜像服务加速 +FROM registry.cn-hangzhou.aliyuncs.com/library/python:3.11-alpine WORKDIR /app @@ -16,9 +17,9 @@ WORKDIR /app # 1.使用阿里云 Alpine 镜像源加速 apk 下载 RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories -# 2. 安装依赖包(使用清华 PyPI 镜像)test_01 +# 2. 安装依赖包(使用阿里云 PyPI 镜像) RUN apk add --no-cache gcc musl-dev libffi-dev wget && \ - pip install --no-cache-dir -i https://pypi.tuna.tsinghua.edu.cn/simple cisco-ai-skill-scanner && \ + pip install --no-cache-dir -i https://mirrors.aliyun.com/pypi/simple/ cisco-ai-skill-scanner && \ apk del gcc musl-dev libffi-dev # 创建 app 用户和组