瀏覽代碼

feat: 更新npm源为淘宝镜像

zhangweicheng 3 年之前
父節點
當前提交
2a2e1d5b35
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Dockerfile

+ 1 - 1
Dockerfile

@@ -4,7 +4,7 @@ WORKDIR /home/ConstructionCost
 
 COPY package.json /home/ConstructionCost/
 
-RUN npm install
+RUN npm install --registry=https://registry.npmmirror.com
 
 FROM base-alpine-new-node:latest