use venv
Some checks failed
Build Docker Image / build (full-python) (push) Has been cancelled
Build Docker Image / build (python) (push) Has been cancelled
Build Docker Image / build (full) (push) Has been cancelled
Build Docker Image / build (default) (push) Has been cancelled

This commit is contained in:
2025-06-14 21:48:04 +02:00
parent 436f16c37f
commit a8678b1deb

View File

@@ -21,10 +21,12 @@ FROM default AS python
ENV TERM=xterm-256color
ARG PYTHON_PACKAGES
RUN apk add --no-cache ${PYTHON_PACKAGES}
RUN python3 -m pip config set global.break-system-packages true
RUN python -m venv /root/venv
ENV PATH="/root/venv/bin:$PATH"
FROM full AS full-python
ENV TERM=xterm-256color
ARG PYTHON_PACKAGES
RUN apk add --no-cache ${PYTHON_PACKAGES}
RUN python3 -m pip config set global.break-system-packages true
RUN python -m venv /root/venv
ENV PATH="/root/venv/bin:$PATH"