Skip to content

Instantly share code, notes, and snippets.

@elnygren
Created August 28, 2017 20:21
Show Gist options
  • Save elnygren/5b778328729849ffd29a4e6c81f88b66 to your computer and use it in GitHub Desktop.
Save elnygren/5b778328729849ffd29a4e6c81f88b66 to your computer and use it in GitHub Desktop.
Node.js Dockerfile
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