Skip to content

Instantly share code, notes, and snippets.

@ledzep9012
Created October 29, 2017 04:29
Show Gist options
  • Save ledzep9012/698a3d037f14b39bcb6cd7c800cc7af2 to your computer and use it in GitHub Desktop.
Save ledzep9012/698a3d037f14b39bcb6cd7c800cc7af2 to your computer and use it in GitHub Desktop.
Docker file contents for a node js application running with nodemon
# Official Image for Node JS
FROM node:boron
# Create app directory
WORKDIR /app
# Install app dependencies
COPY package.json /app
# For npm@5 or later, copy package-lock.json as well
# COPY package.json package-lock.json ./
RUN npm install
# Bundle app source
COPY . /app
#PORT
EXPOSE 3000
CMD [ "npm", "run", "serve" ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment