Created
November 23, 2020 08:46
-
-
Save VisualBean/eee598ae0e3d31f8030cd2167e10b862 to your computer and use it in GitHub Desktop.
Optimized dockerfile
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:12-alpine | |
WORKDIR /app | |
COPY package.json yarn.lock ./ | |
RUN yarn install | |
COPY . . | |
CMD ["node", "/app/src/index.js"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment