Browse Source

chore: 增加部署配置项

TianChenjiang 4 năm trước cách đây
mục cha
commit
2e095fafc8
1 tập tin đã thay đổi với 11 bổ sung0 xóa
  1. 11 0
      Dockerfile

+ 11 - 0
Dockerfile

@@ -0,0 +1,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 . /code  
+RUN yarn build
+
+FROM nginx:1.19-alpine
+COPY seecoder-paas-ui.conf /etc/nginx/conf.d/seecoder-paas-ui.conf
+COPY --from=builder /code/dist/ /var/www/html/dist/