From c3e60f037fee738af89b506b7d84addb411e10dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=B9=E5=B0=BC=E5=B0=94?= Date: Wed, 11 Mar 2026 11:21:20 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E6=94=B9pip=E9=95=9C=E5=83=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index e83a13b..bfdb6db 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,7 +19,9 @@ ENV NODE_ENV=production \ PYTHONDONTWRITEBYTECODE=1 \ PYTHONUNBUFFERED=1 -RUN apk add --no-cache python3 py3-pip +# Alpine 使用国内镜像,加速 apk 安装(python3/py3-pip) +RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories \ + && apk add --no-cache python3 py3-pip COPY --from=build /app/node_modules ./node_modules COPY --from=build /app/dist ./dist