Skip to content

Commit

Permalink
Use venv in docker to try fix build issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Donkie committed May 18, 2023
1 parent dce4ceb commit a35ca3e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a35ca3e

Please sign in to comment.