From f811266ba5b809887712bd6652f45a4147b8a3d4 Mon Sep 17 00:00:00 2001 From: Marc 'risson' Schmitt Date: Tue, 12 Sep 2023 10:22:45 +0200 Subject: [PATCH] root: fix gunicorn not starting Signed-off-by: Marc 'risson' Schmitt --- Dockerfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 203e941a8..5c7017a9b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -75,11 +75,11 @@ RUN --mount=type=secret,id=GEOIPUPDATE_ACCOUNT_ID \ # Stage 5: Python dependencies FROM docker.io/python:3.11.5-bookworm AS python-deps -WORKDIR /work/poetry +WORKDIR /ak-root/poetry -ENV VENV_PATH="/work/venv" \ +ENV VENV_PATH="/ak-root/venv" \ POETRY_VIRTUALENVS_CREATE=false \ - PATH="/work/venv/bin:$PATH" + PATH="/ak-root/venv/bin:$PATH" RUN --mount=type=cache,target=/var/cache/apt \ apt-get update && \ @@ -90,7 +90,7 @@ RUN --mount=type=bind,target=./pyproject.toml,src=./pyproject.toml \ --mount=type=bind,target=./poetry.lock,src=./poetry.lock \ --mount=type=cache,target=/root/.cache/pip \ --mount=type=cache,target=/root/.cache/pypoetry \ - python -m venv /work/venv/ && \ + python -m venv /ak-root/venv/ && \ pip3 install --upgrade pip && \ pip3 install poetry && \ poetry install --only=main --no-ansi --no-interaction @@ -134,7 +134,7 @@ COPY ./manage.py / COPY ./blueprints /blueprints COPY ./lifecycle/ /lifecycle COPY --from=go-builder /go/authentik /bin/authentik -COPY --from=python-deps /work/venv /ak-root/venv +COPY --from=python-deps /ak-root/venv /ak-root/venv COPY --from=web-builder /work/web/dist/ /web/dist/ COPY --from=web-builder /work/web/authentik/ /web/authentik/ COPY --from=website-builder /work/website/help/ /website/help/