Skip to content

Instantly share code, notes, and snippets.

@Tmw
Created March 17, 2015 13: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 Tmw/0c61600fc4821e85bce5 to your computer and use it in GitHub Desktop.
Save Tmw/0c61600fc4821e85bce5 to your computer and use it in GitHub Desktop.
Dockerfile - nodejs
FROM node:0.12
# replace this with your application's default port
EXPOSE 4000
RUN mkdir /src
VOLUME /src
WORKDIR /src
CMD ["npm", "install"]
CMD ["npm", "start"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment