From 7b7c80364fa62e234900a88f10981c485b1226b8 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Mon, 11 Sep 2023 14:22:41 +0200 Subject: [PATCH] try to not save new things in the root directory Signed-off-by: Jens Langhammer --- Dockerfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index aefcf2878..7a383f256 100644 --- a/Dockerfile +++ b/Dockerfile @@ -121,7 +121,8 @@ RUN apt-get update && \ adduser --system --no-create-home --uid 1000 --group --home /authentik authentik && \ mkdir -p /certs /media /blueprints && \ mkdir -p /authentik/.ssh && \ - chown authentik:authentik /certs /media /authentik/.ssh + mkdir -p /ak-root && \ + chown authentik:authentik /certs /media /authentik/.ssh /ak-root COPY ./authentik/ /authentik COPY ./pyproject.toml / @@ -133,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 /venv +COPY --from=python-deps /work/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/ @@ -144,8 +145,8 @@ USER 1000 ENV TMPDIR=/dev/shm/ \ PYTHONDONTWRITEBYTECODE=1 \ PYTHONUNBUFFERED=1 \ - PATH="/venv/bin:$PATH" \ - VENV_PATH="/venv" \ + PATH="/ak-root/venv/bin:$PATH" \ + VENV_PATH="/ak-root/venv" \ POETRY_VIRTUALENVS_CREATE=false HEALTHCHECK --interval=30s --timeout=30s --start-period=60s --retries=3 CMD [ "/lifecycle/ak", "healthcheck" ]