Skip to content

Instantly share code, notes, and snippets.

@sibelius
Created September 21, 2022 13:37
Show Gist options
  • Save sibelius/b56b1e8e42cdd06e3db22c6e6200e01e to your computer and use it in GitHub Desktop.
Save sibelius/b56b1e8e42cdd06e3db22c6e6200e01e to your computer and use it in GitHub Desktop.
Dockerfie using yarn install
FROM node:lts-alpine
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
COPY yarn.lock /usr/src/app/
COPY package.json /usr/src/app/
RUN yarn install --production --frozen-lockfile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment