Dockerfile 365 B

12345678910111213141516
  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@[email protected]"
  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