Created
June 23, 2019 13:09
-
-
Save levynir/9b2a14c17b5f4eb81d5bc6c8e027e859 to your computer and use it in GitHub Desktop.
Dockerfile for local node.js application
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-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