配置前端 npm 镜像源

This commit is contained in:
2026-09-03 12:03:11 +08:00
parent 1a7184806b
commit 7be6ff06b6
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -0,0 +1 @@
registry=https://registry.npmmirror.com
+1 -1
View File
@@ -7,7 +7,7 @@ WORKDIR /app
COPY package.json package-lock.json* ./
# 安装依赖
RUN npm install
RUN npm install --registry=https://registry.npmmirror.com
# 复制源码
COPY . .