Dockerfile 408 B

1234567891011121314
  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 npm install -g cnpm --registry=https://registry.npm.taobao.org
  12. ADD default /etc/nginx/sites-available
  13. EXPOSE 80