Dockerfile 450 B

1234567891011121314151617
  1. ######################
  2. ## Dockerfile to build container images consisting of Node.js and nginx environment
  3. # Based on Ubuntu
  4. #####
  5. # Set the base image to Ubuntu
  6. FROM ubuntu
  7. # File Author / Maintainer
  8. # MAINTAINER name Chunteng Xiao
  9. RUN curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
  10. RUN apt-get update
  11. RUN apt-get install -y nodejs nginx
  12. RUN rm -v /etc/nginx/nginx.conf
  13. ADD nginx.conf /etc/nginx
  14. EXPOSE 80
  15. CMD service nginx start