Created
May 8, 2018 08:50
-
-
Save wawhal/b791eedeb32be473ae9ba8a22e245513 to your computer and use it in GitHub Desktop.
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
# Start with a base container with node installed | |
FROM node:8 | |
# Install nodemon | |
RUN npm install -g nodemon | |
# Create an src directory and make it the work directory | |
WORKDIR /src | |
#Copy package.json to the container | |
ADD src/package.json /src/ | |
#install node modules | |
RUN npm install | |
# Add app source files | |
ADD src /src | |
# Run using nodemon | |
CMD ["nodemon", "server.js"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment