Last active
February 22, 2019 08:55
-
-
Save staskolukasz/be873cb5bb22c1899bd25102b46c65a3 to your computer and use it in GitHub Desktop.
Sample docker file for Node.js application
This file contains 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:10.13.0-alpine | |
WORKDIR /usr/app | |
COPY package.json . | |
COPY package-lock.json . | |
COPY index.js . | |
RUN npm install && npm cache clean --force | |
CMD ["npm", "run", "start"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment