Created
July 21, 2015 21:15
-
-
Save alanhortz/cbe6a986ca0702a3fb23 to your computer and use it in GitHub Desktop.
Usefull generic node.js Docker image for bootstrapping my Docker projects
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 node:latest | |
RUN mkdir /app | |
ADD ./src /app | |
ADD ./package.json / | |
RUN npm install | |
# CMD can be overriden by | |
# - docker run [COMMAND] | |
# - docker-compose yml file [command: ...] | |
CMD node /app/server.js |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment