Skip to content

Instantly share code, notes, and snippets.

@levynir
Created June 23, 2019 13:09
Show Gist options
  • Save levynir/9b2a14c17b5f4eb81d5bc6c8e027e859 to your computer and use it in GitHub Desktop.
Save levynir/9b2a14c17b5f4eb81d5bc6c8e027e859 to your computer and use it in GitHub Desktop.
Dockerfile for local node.js application
FROM node:8-alpine
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
COPY . .
RUN npm install
EXPOSE 3000
CMD [ "npm", "start" ]
#Some of this was copied from https://www.freecodecamp.org/news/how-to-deploy-a-node-js-application-to-amazon-web-services-using-docker-81c2a2d7225b/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment