Skip to content

Commit

Permalink
Fix Nvidia/Cuda repository key rotation
Browse files Browse the repository at this point in the history
  • Loading branch information
hadikoub committed May 2, 2022
1 parent 96f939a commit efcee5b
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion docker/dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,23 @@
From nvidia/cuda:10.1-cudnn7-devel-ubuntu18.04

LABEL maintainer="[email protected]"
ARG DEBIAN_FRONTEND=noninteractive

COPY docker/requirements.txt .

COPY src/main /main

RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -y --no-install-recommends install \
# Fix Nvidia/Cuda repository key rotation
RUN sed -i '/developer\.download\.nvidia\.com\/compute\/cuda\/repos/d' /etc/apt/sources.list.d/*
RUN sed -i '/developer\.download\.nvidia\.com\/compute\/machine-learning\/repos/d' /etc/apt/sources.list.d/*
RUN apt-key del 7fa2af80 &&\
apt-get update && \
apt-get install -y wget && \
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-keyring_1.0-1_all.deb && \
dpkg -i cuda-keyring_1.0-1_all.deb

# Install needed libraries
RUN apt-get update && apt-get -y --no-install-recommends install \
locales \
python3-pip python3-dev \
software-properties-common \
Expand Down

0 comments on commit efcee5b

Please sign in to comment.