From 7a3350dd31a27e6c1277ede4104cd2eb1adc8320 Mon Sep 17 00:00:00 2001 From: minqiyang Date: Sat, 29 Sep 2018 16:53:03 +0800 Subject: [PATCH] Fix nvidia apt source problem test=develop --- Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3affe41016..1914f9d30a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,11 +22,12 @@ ENV HOME /root # Add bash enhancements COPY ./paddle/scripts/docker/root/ /root/ -RUN apt-get update && \ - apt-get install -y --allow-downgrades patchelf \ +RUN apt-get update || \ + apt-get install -y --allow-unauthenticated libnccl2=2.1.2-1+cuda8.0 libnccl-dev=2.1.2-1+cuda8.0 + +RUN apt-get install -y --allow-downgrades patchelf \ git python-pip python-dev python-opencv openssh-server bison \ python3 python3-pip python3-dev \ - libnccl2=2.1.2-1+cuda8.0 libnccl-dev=2.1.2-1+cuda8.0 \ wget unzip unrar tar xz-utils bzip2 gzip coreutils ntp \ curl sed grep graphviz libjpeg-dev zlib1g-dev \ python-matplotlib gcc-4.8 g++-4.8 \ -- GitLab