From cf613bbd846103247add7cd5f7086ecab17fdbd3 Mon Sep 17 00:00:00 2001 From: Tommy Sauer Date: Wed, 21 Feb 2024 16:29:34 +0100 Subject: [PATCH] pip in virtualenv (#268) --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index 0cf729ce..ca588e93 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,6 +11,9 @@ RUN apk --update add python3 openssl ca-certificates bash python3-dev git py3-p apk --update add --virtual build-dependencies libffi-dev openssl-dev libxml2 libxml2-dev libxslt libxslt-dev build-base RUN git config --global http.sslVerify false RUN git clone https://github.com/sapcc/vrops-exporter.git +RUN python3 -m venv /opt/vrops-env +RUN . /opt/vrops-env/bin/activate +ENV PATH /opt/vrops-env/bin:$PATH RUN pip3 install --upgrade pip RUN pip3 install --ignore-installed six RUN pip install --upgrade cffi