Skip to content

Instantly share code, notes, and snippets.

@wawhal
Created May 8, 2018 08:50
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 wawhal/b791eedeb32be473ae9ba8a22e245513 to your computer and use it in GitHub Desktop.
Save wawhal/b791eedeb32be473ae9ba8a22e245513 to your computer and use it in GitHub Desktop.
# 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