Last active
December 26, 2015 15:19
-
-
Save ryanseys/bbb1a1fd096045870044 to your computer and use it in GitHub Desktop.
Dockerfile for Node.js apps
This file contains hidden or 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:12.04 | |
MAINTAINER Ryan Seys <[email protected]> | |
RUN echo "deb http://archive.ubuntu.com/ubuntu precise universe" >> /etc/apt/sources.list | |
RUN apt-get update # DATE: 2013/10/26 | |
RUN apt-get upgrade -y | |
RUN apt-get install -y python-software-properties python g++ make software-properties-common | |
RUN add-apt-repository ppa:chris-lea/node.js && apt-get update | |
RUN apt-get install -y nodejs | |
ADD . /src | |
RUN cd /src; npm install | |
EXPOSE 8080 | |
ENTRYPOINT ["node"] | |
CMD ["/src/app.js"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment