Skip to content

Commit

Permalink
Move to Ubuntu 20.04 for cuda 10.2 toolkit image (NVIDIA#3477)
Browse files Browse the repository at this point in the history
Signed-off-by: Janusz Lisiecki <[email protected]>
  • Loading branch information
JanuszL authored Nov 9, 2021
1 parent 93ff988 commit f3d8522
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions docker/Dockerfile.cuda102.x86_64.deps
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
ARG TOOLKIT_BASE_IMAGE=ubuntu:18.04
ARG TOOLKIT_BASE_IMAGE=ubuntu:20.04
FROM ${TOOLKIT_BASE_IMAGE} as cuda

ENV DEBIAN_FRONTEND=noninteractive

RUN apt update && apt install -y libxml2 curl perl gcc && \
rm -rf /var/lib/apt/lists/*

RUN curl -LO https://developer.download.nvidia.com/compute/cuda/10.2/Prod/local_installers/cuda_10.2.89_440.33.01_linux.run && \
chmod +x cuda_*.run && \
./cuda_*.run --silent --no-opengl-libs --toolkit && \
# just installing with override on Ubuntu 20:04 doesn't work for some reason so unpack and move
./cuda_*.run --extract=/tmp/cuda/ --override && mv /tmp/cuda/cuda-toolkit/ /usr/local/cuda && \
rm -f cuda_*.run;

FROM scratch
Expand Down

0 comments on commit f3d8522

Please sign in to comment.