diff --git a/Dockerfile b/Dockerfile index c3bc61d82..f8527659d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -145,7 +145,9 @@ USER 1000 ENV TMPDIR=/dev/shm/ \ PYTHONDONTWRITEBYTECODE=1 \ PYTHONUNBUFFERED=1 \ - PATH="/venv/bin:$PATH" + PATH="/venv/bin:$PATH" \ + VENV_PATH="/venv" \ + POETRY_VIRTUALENVS_CREATE=false HEALTHCHECK --interval=30s --timeout=30s --start-period=60s --retries=3 CMD [ "/lifecycle/ak", "healthcheck" ] diff --git a/lifecycle/ak b/lifecycle/ak index 3b061cd52..2ea6a4f59 100755 --- a/lifecycle/ak +++ b/lifecycle/ak @@ -55,7 +55,7 @@ function cleanup { } function prepare_debug { - pip install --no-cache-dir -r /requirements-dev.txt + poetry install --no-ansi --no-interaction touch /unittest.xml chown authentik:authentik /unittest.xml }