fix(identity-service): 恢复使用 npmmirror 镜像
- 从华为云镜像回滚到 npmmirror - 移除无效的 disturl 配置 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
db8350b2f5
commit
d18de9823f
|
|
@ -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 ./
|
||||
|
|
|
|||
Loading…
Reference in New Issue