Explorar o código

feat:测试使用南大镜像,延长yarn构建超时时间,避免构建失败

zhangyi hai 1 ano
pai
achega
0bc9411ace
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      Dockerfile

+ 2 - 1
Dockerfile

@@ -1,6 +1,7 @@
 FROM node:16 as builder
 WORKDIR /code
-RUN yarn config set registry https://registry.npm.taobao.org/
+RUN yarn config set registry https://repo.nju.edu.cn/repository/npm/
+RUN yarn config set network-timeout 60000
 ADD package.json /code
 ADD yarn.lock /code
 RUN yarn install