Created
January 20, 2020 12:54
-
-
Save 0xkohe/a046b0fb7cf01cdc48c7c0ead7a85dae to your computer and use it in GitHub Desktop.
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:13 | |
WORKDIR /app | |
COPY ./app/package*.json ./ | |
COPY ./app/yarn.lock ./ | |
# Install production dependencies. | |
RUN yarn install --production | |
# Copy local code to the container image. | |
COPY ./app/index.js ./ | |
# Run the web service on container startup. | |
CMD [ "node", "index.js" ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment