ChengYuXuan il y a 5 ans
Parent
commit
4161a92a6c
1 fichiers modifiés avec 3 ajouts et 2 suppressions
  1. 3 2
      Dockerfile

+ 3 - 2
Dockerfile

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