Skip to content

Instantly share code, notes, and snippets.

@ryanseys
Last active December 26, 2015 15:19
Show Gist options
  • Save ryanseys/bbb1a1fd096045870044 to your computer and use it in GitHub Desktop.
Save ryanseys/bbb1a1fd096045870044 to your computer and use it in GitHub Desktop.
Dockerfile for Node.js apps
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