Dockerfile 349 B

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