From 24080737b0d7945885aac0c627b29cad62980012 Mon Sep 17 00:00:00 2001 From: "Adam J. Stewart" Date: Tue, 6 Aug 2024 16:32:14 +0200 Subject: [PATCH] Use a venv --- Dockerfiles/ubuntu-24.04.dockerfile | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/Dockerfiles/ubuntu-24.04.dockerfile b/Dockerfiles/ubuntu-24.04.dockerfile index 5d46cf3..4be7b93 100644 --- a/Dockerfiles/ubuntu-24.04.dockerfile +++ b/Dockerfiles/ubuntu-24.04.dockerfile @@ -34,15 +34,6 @@ RUN apt update -y \ patchelf \ pciutils \ python3-pip \ - python3-setuptools \ - python3-wheel \ - python3-gnureadline \ - python3-boto3 \ - python3-pyyaml \ - python3-pytz \ - python3-minio \ - python3-requests \ - python3-clingo \ rsync \ unzip \ wget \ @@ -53,6 +44,13 @@ RUN apt update -y \ && ln -s /usr/bin/gpg /usr/bin/gpg2 \ && ln -s `which python3` /usr/bin/python +ENV VIRTUAL_ENV=/opt/view +RUN python3 -m venv /opt/venv +ENV PATH="$VIRTUAL_ENV/bin:$PATH" +RUN python3 -m pip install --upgrade pip setuptools wheel \ + && python3 -m pip install gnureadline boto3 pyyaml pytz minio requests clingo \ + && rm -rf ~/.cache + CMD ["/bin/bash"] ENV NVIDIA_VISIBLE_DEVICES=all \