use venv
Some checks failed
Some checks failed
This commit is contained in:
@@ -21,10 +21,12 @@ FROM default AS python
|
|||||||
ENV TERM=xterm-256color
|
ENV TERM=xterm-256color
|
||||||
ARG PYTHON_PACKAGES
|
ARG PYTHON_PACKAGES
|
||||||
RUN apk add --no-cache ${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
|
FROM full AS full-python
|
||||||
ENV TERM=xterm-256color
|
ENV TERM=xterm-256color
|
||||||
ARG PYTHON_PACKAGES
|
ARG PYTHON_PACKAGES
|
||||||
RUN apk add --no-cache ${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"
|
||||||
Reference in New Issue
Block a user