Skip to content

Instantly share code, notes, and snippets.

@0xkohe
Created January 20, 2020 12:54
Show Gist options
  • Save 0xkohe/a046b0fb7cf01cdc48c7c0ead7a85dae to your computer and use it in GitHub Desktop.
Save 0xkohe/a046b0fb7cf01cdc48c7c0ead7a85dae to your computer and use it in GitHub Desktop.
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