From 62892ed8d7fbce4b54ed6b950e67ac404b5a1acb Mon Sep 17 00:00:00 2001 From: 17hz <0x149527@gmail.com> Date: Thu, 28 Aug 2025 14:43:34 +0800 Subject: [PATCH] refactor: relocate China npm registry config to base image (#24678) --- web/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/Dockerfile b/web/Dockerfile index 1376dec749..2ea8402cd6 100644 --- a/web/Dockerfile +++ b/web/Dockerfile @@ -5,6 +5,9 @@ LABEL maintainer="takatost@gmail.com" # if you located in China, you can use aliyun mirror to speed up # RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories +# if you located in China, you can use taobao registry to speed up +# RUN npm config set registry https://registry.npmmirror.com + RUN apk add --no-cache tzdata RUN corepack enable ENV PNPM_HOME="/pnpm" @@ -22,9 +25,6 @@ COPY pnpm-lock.yaml . # Use packageManager from package.json RUN corepack install -# if you located in China, you can use taobao registry to speed up -# RUN pnpm install --frozen-lockfile --registry https://registry.npmmirror.com/ - RUN pnpm install --frozen-lockfile # build resources