Explorar o código

更新 'Dockerfile'

使用npm安装项目依赖
ZhangYi2020 hai 1 ano
pai
achega
5d49940c85
Modificáronse 1 ficheiros con 2 adicións e 3 borrados
  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