Selaa lähdekoodia

fix: node version

Azure 2 vuotta sitten
vanhempi
commit
2b692093d6
1 muutettua tiedostoa jossa 4 lisäystä ja 4 poistoa
  1. 4 4
      Dockerfile

+ 4 - 4
Dockerfile

@@ -1,11 +1,11 @@
-FROM node:10-alpine as builder  
+FROM node:12-alpine as builder
 WORKDIR /code
 WORKDIR /code
 RUN yarn config set registry https://registry.npm.taobao.org/
 RUN yarn config set registry https://registry.npm.taobao.org/
 ADD package.json /code
 ADD package.json /code
-RUN yarn install --production  
-ADD . /code  
+RUN yarn install --production
+ADD . /code
 RUN yarn build
 RUN yarn build
 
 
 FROM nginx:1.19-alpine
 FROM nginx:1.19-alpine
 COPY nginx.conf /etc/nginx/conf.d/nginx.conf
 COPY nginx.conf /etc/nginx/conf.d/nginx.conf
-COPY --from=builder /code/dist/ /var/www/html/dist/
+COPY --from=builder /code/dist/ /var/www/html/dist/