Skip to content

Commit

Permalink
Use a venv
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjstewart committed Aug 6, 2024
1 parent 8b3be25 commit 2408073
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions Dockerfiles/ubuntu-24.04.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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 \
Expand Down

0 comments on commit 2408073

Please sign in to comment.