@@ -16,12 +16,12 @@ ENV HOME /root
16
16
RUN apt-get update && \
17
17
apt-get install -y software-properties-common && add-apt-repository ppa:deadsnakes/ppa && \
18
18
apt-get update && \
19
- apt-get install -y curl wget vim git unzip unrar tar xz-utils bzip2 gzip \
19
+ apt-get install -y curl wget vim git unzip unrar tar xz-utils bzip2 gzip \
20
20
coreutils ntp language-pack-zh-hans python-qt4 libsm6 libxext6 libxrender-dev
21
21
22
22
23
23
# Downgrade gcc&&g++
24
- WORKDIR /usr/bin
24
+ WORKDIR /usr/bin
25
25
RUN apt-get update --fix-missing
26
26
COPY script_build /script_build
27
27
RUN bash /script_build/install_gcc.sh gcc82 && rm -rf /script_build && \
@@ -30,7 +30,7 @@ RUN bash /script_build/install_gcc.sh gcc82 && rm -rf /script_build && \
30
30
ln -s /usr/local/gcc-8.2/bin/g++ /usr/local/bin/g++ && \
31
31
ln -s /usr/local/gcc-8.2/bin/gcc /usr/bin/gcc && \
32
32
ln -s /usr/local/gcc-8.2/bin/g++ /usr/bin/g++
33
- ENV PATH=/usr/local/gcc-8.2/bin:$PATH
33
+ ENV PATH=/usr/local/gcc-8.2/bin:$PATH
34
34
35
35
RUN apt-get update && \
36
36
apt-get install -y python3.6 python3.6-dev python3.6-venv && \
@@ -43,8 +43,8 @@ RUN wget -q https://cmake.org/files/v3.20/cmake-3.20.0-linux-x86_64.tar.gz && ta
43
43
ENV PATH=/home/cmake-3.20.0-linux-x86_64/bin:$PATH
44
44
45
45
# remove them when apt-get support 2.27 and higher version
46
- RUN wget -q https://ftp.gnu.org/gnu/binutils/binutils-2.33.1.tar.gz && \
47
- tar -xzf binutils-2.33.1.tar.gz && \
46
+ RUN wget -q https://ftp.gnu.org/gnu/binutils/binutils-2.33.1.tar.gz && \
47
+ tar -xzf binutils-2.33.1.tar.gz && \
48
48
cd binutils-2.33.1 && \
49
49
./configure && make -j && make install && cd .. && rm -rf binutils-2.33.1 binutils-2.33.1.tar.gz
50
50
@@ -99,7 +99,7 @@ RUN wget https://paddle-ci.gz.bcebos.com/ccache-3.7.9.tar.gz && \
99
99
make -j8 && make install && \
100
100
ln -s /usr/local/ccache-3.7.9/bin/ccache /usr/local/bin/ccache
101
101
102
- # For CINN environment
102
+ # For CINN environment
103
103
RUN apt update --fix-missing && \
104
104
apt install autoconf autogen libtool zlib1g-dev sudo libginac-dev clang cmake -y && \
105
105
apt remove python3-six python-six -y && \
0 commit comments