fix: npm 源改为 registry.npmmirror.com(taobao.org 域名已停止服务)
CI/CD Deploy (Web) / 构建前端镜像并部署 (push) Failing after 10m23s

This commit is contained in:
2026-08-31 16:19:29 +08:00
parent 609c88bd46
commit 867647d2cd
+1 -1
View File
@@ -10,7 +10,7 @@ WORKDIR /build
# 复制依赖清单,利用 Docker 分层缓存(先安装依赖再复制源码)
COPY package.json .
RUN npm config set registry https://registry.npm.taobao.org/ && \
RUN npm config set registry https://registry.npmmirror.com/ && \
npm install --no-audit --no-fund || npm install --no-audit --no-fund --legacy-peer-deps
# 复制源码