Explorar el Código

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

zhangyi hace 2 años
padre
commit
0bc9411ace
Se han modificado 1 ficheros con 2 adiciones y 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