Sfoglia il codice sorgente

fix:修改淘宝镜像源

ZhangYi2020 1 anno fa
parent
commit
c7b61c6c23
1 ha cambiato i file con 4 aggiunte e 4 eliminazioni
  1. 4 4
      Dockerfile

+ 4 - 4
Dockerfile

@@ -1,9 +1,9 @@
-FROM node:10-alpine as builder  
+FROM node:14-alpine as builder
 WORKDIR /code
-RUN yarn config set registry https://registry.npm.taobao.org/
+RUN yarn config set registry https://registry.npmmirror.com
 ADD package.json /code
-RUN yarn install --production  
-ADD . /code  
+RUN yarn install --production
+ADD . /code
 RUN yarn build
 
 FROM nginx:1.19-alpine