Skip to content

Instantly share code, notes, and snippets.

@andrew--r
Last active December 1, 2020 14:21
Show Gist options
  • Save andrew--r/b5f458a6aa049182943fe14eb7d65c62 to your computer and use it in GitHub Desktop.
Save andrew--r/b5f458a6aa049182943fe14eb7d65c62 to your computer and use it in GitHub Desktop.
FROM node:12.13.0-alpine
WORKDIR /usr/src/deps_dev
COPY package.json yarn.lock ./
RUN cp -r . ../deps_prod && \
yarn install --prefer-offline --frozen-lockfile --no-color && \
cd ../deps_prod && \
yarn install --production --ignore-scripts --prefer-offline --frozen-lockfile --no-color && \
yarn cache clean
@pvpshoot
Copy link

pvpshoot commented Dec 1, 2020

Спасибо ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment