Skip to content

Commit 5e0ff80

Browse files
authored
Docs, FAQ: Replace deprecated --no-dev with --without dev (#8659)
1 parent 3900d81 commit 5e0ff80

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/faq.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ For example, you might have a Dockerfile that looks something like this:
206206
FROM python
207207
COPY pyproject.toml poetry.lock .
208208
COPY src/ ./src
209-
RUN pip install poetry && poetry install --no-dev
209+
RUN pip install poetry && poetry install --without dev
210210
```
211211

212212
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
223223
COPY pyproject.toml poetry.lock .
224224
RUN pip install poetry && poetry install --no-root --no-directory
225225
COPY src/ ./src
226-
RUN poetry install --no-dev
226+
RUN poetry install --without dev
227227
```
228228

229229
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).

0 commit comments

Comments
 (0)