From 40fa3ccddedc1598c8d7f1ded3a9b4f1b98bfcd8 Mon Sep 17 00:00:00 2001 From: quassy <369996+quassy@users.noreply.github.com> Date: Mon, 13 Nov 2023 13:30:47 +0100 Subject: [PATCH] Docs, FAQ: Replace deprecated `--no-dev` with `--without dev` --- docs/faq.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/faq.md b/docs/faq.md index 46d88c1fbf5..105592ce9bd 100644 --- a/docs/faq.md +++ b/docs/faq.md @@ -206,7 +206,7 @@ For example, you might have a Dockerfile that looks something like this: FROM python COPY pyproject.toml poetry.lock . COPY src/ ./src -RUN pip install poetry && poetry install --no-dev +RUN pip install poetry && poetry install --without dev ``` As soon as *any* source file changes, the cache for the `RUN` layer will be invalidated, which forces all 3rd party dependencies (likely the slowest step out of these) to be installed again if you changed any files in `src/`. @@ -223,7 +223,7 @@ FROM python COPY pyproject.toml poetry.lock . RUN pip install poetry && poetry install --no-root --no-directory COPY src/ ./src -RUN poetry install --no-dev +RUN poetry install --without dev ``` The two key options we are using here are `--no-root` (skips installing the project source) and `--no-directory` (skips installing any local directory path dependencies, you can omit this if you don't have any).