File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,9 @@ ENV HOME /root
17
17
# Add bash enhancements
18
18
COPY paddle/scripts/docker/root/ /root/
19
19
20
- RUN apt-get update && \
20
+ RUN chmod 777 /tmp
21
+
22
+ RUN apt-get update --allow-unauthenticated && \
21
23
apt-get install -y software-properties-common && add-apt-repository ppa:deadsnakes/ppa && \
22
24
apt-get update && \
23
25
apt-get install -y curl wget vim git unzip unrar tar xz-utils libssl-dev bzip2 gzip \
@@ -48,7 +50,7 @@ ENV PATH=/home/cmake-3.16.0-Linux-x86_64/bin:$PATH
48
50
49
51
50
52
RUN apt-get update && \
51
- apt-get install -y python3.7 python3.7-dev && \
53
+ apt-get install -y python3.7 python3.7-dev python3.7-distutils && \
52
54
mv /usr/bin/python /usr/bin/python.bak && ln -s /usr/bin/python3.7 /usr/bin/python && \
53
55
mv /usr/bin/python3 /usr/bin/python3.bak && ln -s /usr/bin/python3.7 /usr/bin/python3
54
56
Original file line number Diff line number Diff line change @@ -80,7 +80,11 @@ function install_whl(){
80
80
81
81
function set_cuda_env(){
82
82
if [[ ${WITH_GPU} == " ON" ]]; then
83
- sed -i " s#<setcuda>#ENV LD_LIBRARY_PATH=/usr/local/cuda-${ref_CUDA_MAJOR} /targets/x86_64-linux/lib:\$ LD_LIBRARY_PATH #g" Dockerfile.tmp
83
+ sed -i " s#<setcuda>#ENV LD_LIBRARY_PATH=/usr/local/cuda-${ref_CUDA_MAJOR} /targets/x86_64-linux/lib:\$ LD_LIBRARY_PATH \\
84
+ \\
85
+ RUN apt-key del 7fa2af80 \\
86
+ RUN rm /etc/apt/sources.list.d/cuda.list \&\& rm /etc/apt/sources.list.d/nvidia-ml.list \\
87
+ RUN apt-key adv --fetch-keys https://developer.download.nvidia.cn/compute/cuda/repos/ubuntu1804/x86_64/3bf863cc.pub #g" Dockerfile.tmp
84
88
else
85
89
sed -i ' s#<setcuda>##g' Dockerfile.tmp
86
90
fi
You can’t perform that action at this time.
0 commit comments