Created
November 11, 2017 03:26
-
-
Save joselfonseca/52b55b0acdd30a88db78fc2c10a3460a to your computer and use it in GitHub Desktop.
Dockerfile Node JS
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 | |
| COPY package.json yarn.lock /api/ | |
| WORKDIR /api | |
| RUN yarn | |
| ADD . /api | |
| EXPOSE 3000 | |
| CMD [ "node", "." ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment