Use venv in docker to try fix build issues

This commit is contained in:
Donkie
2023-05-18 15:46:41 +02:00
parent dce4cebb00
commit a35ca3e9ba

View File

@@ -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