added no-root to poetry install
CI Pipeline / Test (pull_request) Successful in 3m27s
CI Pipeline / Build and Publish (./Dockerfile.model, ${{ vars.docker_repo_url }}/${{ gitea.repository }}/model) (pull_request) Successful in 7m0s
CI Pipeline / Build and Publish (./Dockerfile.web_ui, ${{ vars.docker_repo_url }}/${{ gitea.repository }}/web_ui) (pull_request) Successful in 5m29s

This commit is contained in:
Brian Bjarke Jensen
2024-06-05 22:31:29 +02:00
parent 599769a8f6
commit ef985f6687
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -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
+2 -1
View File
@@ -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