ソースを参照

更新 'Dockerfile'

使用npm安装项目依赖
ZhangYi2020 1 年間 前
コミット
5d49940c85
1 ファイル変更2 行追加3 行削除
  1. 2 3
      Dockerfile

+ 2 - 3
Dockerfile

@@ -1,10 +1,9 @@
 FROM node:16 as builder
 WORKDIR /code
-RUN yarn config set registry https://repo.nju.edu.cn/repository/npm/
-RUN yarn config set network-timeout 60000
+RUN npm config set registry https://registry.npmmirror.com
 ADD package.json /code
 ADD yarn.lock /code
-RUN yarn install
+RUN npm install
 ADD . /code
 RUN yarn build:prod