fix: add --no-root to poetry install in Dockerfiles (Poetry 2.x)

This commit is contained in:
Vadym Samoilenko 2026-04-29 14:35:28 +01:00
parent 5cd2fb2743
commit 85e1e852ed
2 changed files with 2 additions and 2 deletions

View file

@ -33,7 +33,7 @@ COPY pyproject.toml poetry.lock ./
# Install dependencies using Poetry directly (simpler and more reliable)
RUN poetry config virtualenvs.create false \
&& poetry install --only main --no-interaction --no-ansi \
&& poetry install --only main --no-root --no-interaction --no-ansi \
&& rm -rf $POETRY_CACHE_DIR
# -----------------------------------------------------------------------------

View file

@ -36,7 +36,7 @@ COPY pyproject.toml poetry.lock ./
# Install dependencies
RUN poetry config virtualenvs.create false \
&& poetry install --only main --no-interaction --no-ansi \
&& poetry install --only main --no-root --no-interaction --no-ansi \
&& rm -rf $POETRY_CACHE_DIR
# -----------------------------------------------------------------------------