From a35ca3e9badfd210c3958e068abcc8ee4844f9c7 Mon Sep 17 00:00:00 2001 From: Donkie Date: Thu, 18 May 2023 15:46:41 +0200 Subject: [PATCH] Use venv in docker to try fix build issues --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 5ea290f..06529fc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,7 +17,9 @@ LABEL org.opencontainers.image.licenses=MIT RUN adduser -D app USER app -ENV PATH="/home/app/.local/bin:${PATH}" +RUN python -m venv /home/app/.venv + +ENV PATH="/home/app/.venv/bin:${PATH}" # Copy and install app COPY --chown=app:app spoolman /home/app/spoolman/spoolman