Skip to content

Instantly share code, notes, and snippets.

@roblayton
Created May 27, 2015 02:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save roblayton/d32aef35ece8fc886b49 to your computer and use it in GitHub Desktop.
Save roblayton/d32aef35ece8fc886b49 to your computer and use it in GitHub Desktop.
Example nodejs Dockerfile
FROM ubuntu
RUN apt-get install -y python-software-properties python
RUN add-apt-repository ppa:chris-lea/node.js
RUN echo "deb http://us.archive.ubuntu.com/ubuntu/ precise universe" >> /etc/apt/sources.list
RUN apt-get update
RUN apt-get install -y nodejs
RUN mkdir /var/www
ADD app.js /var/www/app.js
CMD ["/usr/bin/node", "/var/www/app.js"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment