fix: npm 源改为 registry.npmmirror.com(taobao.org 域名已停止服务)
CI/CD Deploy (Web) / 构建前端镜像并部署 (push) Failing after 10m23s
CI/CD Deploy (Web) / 构建前端镜像并部署 (push) Failing after 10m23s
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
# 复制源码
|
||||
|
||||
Reference in New Issue
Block a user