Last active
December 1, 2020 14:21
-
-
Save andrew--r/b5f458a6aa049182943fe14eb7d65c62 to your computer and use it in GitHub Desktop.
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.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 странно, что на сайте не все опции описаны. [email protected]
:
➜ ~ yarn install -h
Usage: yarn install [flags]
Yarn install is used to install all dependencies for a project.
Options:
...
--offline trigger an error if any required dependencies are not available in local cache
--prefer-offline use network only if dependencies are not available in local cache
...
Спасибо ❤️
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
не увидел в списке опций
--prefer-offline
, только --offline. Это тоже самое?