Created
August 28, 2017 20:21
-
-
Save elnygren/5b778328729849ffd29a4e6c81f88b66 to your computer and use it in GitHub Desktop.
Node.js Dockerfile
This file contains hidden or 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:8.4.0 | |
# Create app directory | |
WORKDIR /app | |
# Install app dependencies | |
COPY package.json . | |
COPY package-lock.json . | |
RUN npm install | |
# Bundle app source | |
COPY . . | |
EXPOSE 3000 | |
CMD [ "npm", "start" ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment