Skip to content

Commit 3245d0e

Browse files
committed
Merge pull request PaddlePaddle#1617 from ShiningZhang/develop
update Dockerfile.cuda11.2-cudnn8.devel
1 parent e7901d2 commit 3245d0e

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

tools/Dockerfile.cuda11.2-cudnn8.devel

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,12 @@ RUN wget -q https://www.python.org/ftp/python/3.8.0/Python-3.8.0.tgz && \
7777
CFLAGS="-Wformat" ./configure --prefix=/usr/local/ --enable-shared > /dev/null && \
7878
make -j8 > /dev/null && make altinstall > /dev/null && ldconfig && cd .. && rm -rf Python-3.8.0*
7979

80+
# Install Python3.9
81+
RUN wget -q https://www.python.org/ftp/python/3.9.0/Python-3.9.0.tgz && \
82+
tar -xzf Python-3.9.0.tgz && cd Python-3.9.0 && \
83+
CFLAGS="-Wformat" ./configure --prefix=/usr/local/ --enable-shared > /dev/null && \
84+
make -j8 > /dev/null && make altinstall > /dev/null && ldconfig && cd .. && rm -rf Python-3.9.0*
85+
8086
ENV LD_LIBRARY_PATH=/usr/local/lib:${LD_LIBRARY_PATH}
8187
RUN ln -sf /usr/local/bin/python3.6 /usr/local/bin/python3 && ln -sf /usr/local/bin/python3.6 /usr/bin/python3 && ln -sf /usr/local/bin/pip3.6 /usr/local/bin/pip3 && ln -sf /usr/local/bin/pip3.6 /usr/bin/pip3
8288

@@ -132,10 +138,13 @@ RUN wget https://paddle-ci.gz.bcebos.com/ccache-3.7.9.tar.gz && \
132138
make -j8 && make install && \
133139
ln -s /usr/local/ccache-3.7.9/bin/ccache /usr/local/bin/ccache
134140

135-
RUN python3.8 -m pip install --upgrade pip==21.1.1 requests && \
136-
python3.7 -m pip install --upgrade pip==21.1.1 requests && \
137-
python3.6 -m pip install --upgrade pip==21.1.1 requests
141+
# Update pip version
142+
RUN python3.8 -m pip install --upgrade pip==21.3.1 requests && \
143+
python3.7 -m pip install --upgrade pip==21.3.1 requests && \
144+
python3.6 -m pip install --upgrade pip==21.3.1 requests && \
145+
python3.9 -m pip install --upgrade pip==21.3.1 requests
138146

147+
# Wget ssl libs and link thems
139148
RUN wget https://paddle-serving.bj.bcebos.com/others/centos_ssl.tar && \
140149
tar xf centos_ssl.tar && rm -rf centos_ssl.tar && \
141150
mv libcrypto.so.1.0.2k /usr/lib/libcrypto.so.1.0.2k && mv libssl.so.1.0.2k /usr/lib/libssl.so.1.0.2k && \

0 commit comments

Comments
 (0)