Created
May 27, 2015 02:35
-
-
Save roblayton/d32aef35ece8fc886b49 to your computer and use it in GitHub Desktop.
Example nodejs Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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