Skip to content

Commit

Permalink
install cuda and friends in train Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
bhearsum committed Dec 27, 2024
1 parent 3e70683 commit 44827e9
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions taskcluster/docker/train/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
FROM $DOCKER_IMAGE_PARENT
LABEL maintainer="Mozilla Release Engineering <release+docker@mozilla.com>"

RUN curl -L https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2404/x86_64/cuda-keyring_1.1-1_all.deb > /tmp/cuda-keyring.deb \
&& dpkg -i /tmp/cuda-keyring.deb \
&& rm /tmp/cuda-keyring.deb

RUN apt-get update -qq \
&& apt-get install -y python3-numpy \
python3-fasttext \
Expand All @@ -16,6 +20,17 @@ RUN apt-get update -qq \
wget \
pkg-config \
libicu-dev \
cuda-toolkit \
software-properties-common \
&& apt-get clean

RUN curl -L https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-ubuntu2204.pin > /tmp/cuda.pin \
&& mv /tmp/cuda.pin /etc/apt/preferences.d/cuda-repository-pin-600 \
&& apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/3bf863cc.pub \
&& add-apt-repository "deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/ /" \
&& apt-get update -qq \
&& apt-get install -y cudnn9-cuda-12 \
libcudnn9-dev-cuda-12 \
&& apt-get clean


Expand Down

0 comments on commit 44827e9

Please sign in to comment.