fix: add --no-root to poetry install in Dockerfiles (Poetry 2.x)
This commit is contained in:
parent
5cd2fb2743
commit
85e1e852ed
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue