Skip to content

Commit

Permalink
Docs, FAQ: Replace deprecated --no-dev with --without dev
Browse files Browse the repository at this point in the history
  • Loading branch information
quassy authored Nov 13, 2023
1 parent b25ebfd commit c1e6ffe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/`.
Expand All @@ -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).
Expand Down

0 comments on commit c1e6ffe

Please sign in to comment.