From ef985f66878dc22e6577f0e338b36f9ad77a44a5 Mon Sep 17 00:00:00 2001 From: Brian Bjarke Jensen Date: Wed, 5 Jun 2024 22:31:29 +0200 Subject: [PATCH] added no-root to poetry install --- Dockerfile.model | 3 ++- Dockerfile.web_ui | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile.model b/Dockerfile.model index 21658f4..0efbc31 100644 --- a/Dockerfile.model +++ b/Dockerfile.model @@ -31,7 +31,8 @@ ENV PATH="${POETRY_HOME}/bin:$PATH" WORKDIR ${APP_HOME} COPY ./poetry.lock ./pyproject.toml ./ RUN --mount=type=cache,target=${POETRY_CACHE_DIR} poetry install \ - --with shared,model + --with shared,model \ + --no-root # final stage FROM python:3.12-slim-bookworm diff --git a/Dockerfile.web_ui b/Dockerfile.web_ui index 1cb4942..ab5b046 100644 --- a/Dockerfile.web_ui +++ b/Dockerfile.web_ui @@ -31,7 +31,8 @@ ENV PATH="${POETRY_HOME}/bin:$PATH" WORKDIR ${APP_HOME} COPY ./poetry.lock ./pyproject.toml ./ RUN --mount=type=cache,target=${POETRY_CACHE_DIR} poetry install \ - --with shared,web_ui + --with shared,web_ui \ + --no-root # final stage FROM python:3.12-slim-bookworm