From 5fd93e5bb5be6a324d0879b9f4bb37e025197b45 Mon Sep 17 00:00:00 2001 From: EvertBunschoten Date: Thu, 7 Nov 2024 16:03:25 +0100 Subject: [PATCH] Create python virtual environment --- docker/build/Dockerfile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/docker/build/Dockerfile b/docker/build/Dockerfile index df0daf8..5259327 100644 --- a/docker/build/Dockerfile +++ b/docker/build/Dockerfile @@ -9,7 +9,14 @@ RUN apt-get update && apt-get install -y \ && rm -rf /var/lib/apt/lists/* \ && update-alternatives --install /usr/bin/python python /usr/bin/python3 10 \ && /usr/sbin/update-ccache-symlinks \ - && echo 'export PATH="/usr/lib/ccache:$PATH"' | tee -a ~/.bashrc + && echo 'export PATH="/usr/lib/ccache:$PATH"' | tee -a ~/.bashrc \ + && apt-get update \ + && apt-get install -y python3-virtualenv \ + && apt-get install -y python3.12-venv \ + && python3 -m venv /home/unbuntu/pyenv \ + && virtualenv -p /usr/bin/python3 /home/ubuntu/pyenv + + # Copies your code file from your action repository to the filesystem path `/` of the container COPY docker/build/getSU2DataMiner.sh /getSU2DataMiner.sh