Dockerfile 451 B

12345678910111213141516
  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 apt-get update
  10. RUN apt-get install -y nodejs nginx npm
  11. RUN rm -v /etc/nginx/nginx.conf
  12. RUN npm install -g cnpm --registry=https://registry.npm.taobao.org
  13. ADD nginx.conf /etc/nginx
  14. EXPOSE 80
  15. CMD service nginx start