Dockerfile 502 B

123456789101112131415161718192021
  1. FROM nginx:1.23.2-alpine
  2. # Remove any existing config files
  3. RUN rm /etc/nginx/conf.d/*
  4. # Copy config files
  5. # *.conf files in "conf.d/" dir get included in main config
  6. COPY ./default.conf /etc/nginx/conf.d/
  7. #COPY ./default.conf /etc/nginx/nginx.conf
  8. ## Remove default nginx index page
  9. #RUN rm -rf /usr/share/nginx/html/*
  10. ## Copy from the stahg 1
  11. #COPY --from=builder /usr/app/dist/ssr /usr/share/nginx/html
  12. # Expose the listening port
  13. EXPOSE 80
  14. # Launch NGINX
  15. CMD [ "nginx", "-g", "daemon off;" ]