-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Nvidia/Cuda repository key rotation
- Loading branch information
Showing
1 changed file
with
12 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 \ | ||
|