Created
October 29, 2017 04:29
-
-
Save ledzep9012/698a3d037f14b39bcb6cd7c800cc7af2 to your computer and use it in GitHub Desktop.
Docker file contents for a node js application running with nodemon
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
# 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