Add --no-root flag to poetry install commands

This commit is contained in:
Quentin McGaw
2024-04-02 07:12:03 +00:00
parent 555807c5b0
commit bef6fc2599
2 changed files with 2 additions and 2 deletions

View File

@@ -14,7 +14,7 @@ WORKDIR /home/worker/app
COPY pyproject.toml poetry.lock ./
ARG POETRY_EXTRAS="ui vector-stores-qdrant llms-ollama embeddings-ollama"
RUN poetry install --extras "${POETRY_EXTRAS}"
RUN poetry install --no-root --extras "${POETRY_EXTRAS}"
FROM base as app
ENV \

View File

@@ -24,7 +24,7 @@ WORKDIR /home/worker/app
COPY pyproject.toml poetry.lock ./
ARG POETRY_EXTRAS="ui embeddings-huggingface llms-llama-cpp vector-stores-qdrant"
RUN poetry install --extras "${POETRY_EXTRAS}"
RUN poetry install --no-root --extras "${POETRY_EXTRAS}"
FROM base as app