Dockerfile 490 B

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