From d18de9823f00def2a58526852a37e7e52fb776b6 Mon Sep 17 00:00:00 2001 From: Developer Date: Wed, 3 Dec 2025 19:11:07 -0800 Subject: [PATCH] =?UTF-8?q?fix(identity-service):=20=E6=81=A2=E5=A4=8D?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=20npmmirror=20=E9=95=9C=E5=83=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 从华为云镜像回滚到 npmmirror - 移除无效的 disturl 配置 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- backend/services/identity-service/Dockerfile | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/backend/services/identity-service/Dockerfile b/backend/services/identity-service/Dockerfile index a8dac048..5875576e 100644 --- a/backend/services/identity-service/Dockerfile +++ b/backend/services/identity-service/Dockerfile @@ -8,10 +8,8 @@ FROM node:20-alpine AS builder # Use Aliyun mirror for Alpine packages (China acceleration) RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories -# Use China mirrors for npm (try Huawei mirror as fallback) -# Options: npmmirror.com, mirrors.huaweicloud.com, registry.npm.taobao.org -RUN npm config set registry https://mirrors.huaweicloud.com/repository/npm/ && \ - npm config set disturl https://mirrors.huaweicloud.com/nodejs/ +# Use taobao npm registry (China acceleration) +RUN npm config set registry https://registry.npmmirror.com WORKDIR /app @@ -53,8 +51,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ curl \ && rm -rf /var/lib/apt/lists/* -# Use Huawei npm mirror (more stable than npmmirror) -RUN npm config set registry https://mirrors.huaweicloud.com/repository/npm/ +# Use taobao npm registry (China acceleration) +RUN npm config set registry https://registry.npmmirror.com # Install production dependencies only COPY package*.json ./