You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
365 B

  1. FROM node:12.16.1
  2. WORKDIR /gva_web/
  3. COPY . .
  4. RUN npm install
  5. RUN npm run build
  6. FROM nginx:alpine
  7. LABEL MAINTAINER="SliverHorn@sliver_horn@qq.com"
  8. COPY .docker-compose/nginx/conf.d/my.conf /etc/nginx/conf.d/my.conf
  9. COPY --from=0 /gva_web/dist /usr/share/nginx/html
  10. RUN cat /etc/nginx/nginx.conf
  11. RUN cat /etc/nginx/conf.d/my.conf
  12. RUN ls -al /usr/share/nginx/html