Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
dtandersen authored Jan 30, 2024
1 parent dd5cced commit 7f083d1
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,30 @@
FROM ghcr.io/ucsd-ets/scipy-ml-notebook:stable
FROM ghcr.io/ucsd-ets/datascience:stable

LABEL maintainer="UC San Diego ITS/ETS <[email protected]>"

# 2) change to root to install packages
USER root


RUN apt-get -q update && \
apt-get -qy install apt-utils && \
apt-get -qy dist-upgrade && \
apt-get -qy auto-remove && \
apt-get install -qy p7zip-full software-properties-common && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
wget -nv https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-ubuntu2004.pin -O /etc/apt/preferences.d/cuda-repository-pin-600 && \
apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/3bf863cc.pub && \
add-apt-repository \"deb http://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/ /\" && \
apt-get -q update && \
apt-get install -qqy cuda-11-1 cuda-nvcc-11-1 cuda-toolkit-11-1 && \
wget -nv https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/libcudnn8_8.0.5.39-1+cuda11.1_amd64.deb -O /var/tmp/libcudnn8.deb && \
wget -nv https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/libnccl2_2.8.4-1+cuda11.1_amd64.deb -O /var/tmp/libnccl2.deb && \
dpkg -i /var/tmp/libcudnn8.deb /var/tmp/libnccl2.deb && \
fix-permissions $CONDA_DIR && \
fix-permissions /home/$NB_USER


# apt-get -q update
# apt-get -qy install apt-utils
# apt-get -qy dist-upgrade
Expand All @@ -27,6 +46,7 @@ USER root
#(nop) ENV PATH=/opt/conda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/cuda/bin


COPY env.yaml /tmp/env.yml

RUN conda env create --file /tmp/env.yml && \
eval "$(conda shell.bash hook)" && \
Expand Down

0 comments on commit 7f083d1

Please sign in to comment.