|
1 | | -FROM ubuntu:16.04 |
| 1 | +FROM docker.1ms.run/ubuntu:18.04 |
2 | 2 |
|
3 | 3 | WORKDIR /workspace |
4 | 4 |
|
5 | | -RUN sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list && \ |
6 | | - sed -i 's/security.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list && \ |
7 | | - sed -i 's/security.ubuntu.com/mirrors.ustc.edu.cn/g' /etc/apt/sources.list && \ |
8 | | - sed -i 's/archive.ubuntu.com/mirrors.ustc.edu.cn/g' /etc/apt/sources.list && \ |
| 5 | +RUN sed -i 's/deb.debian.org/mirrors.aliyun.com/g' /etc/apt/sources.list && \ |
| 6 | + sed -i 's/security.debian.org/mirrors.aliyun.com/g' /etc/apt/sources.list && \ |
| 7 | + sed -i 's/security.ubuntu.com/mirrors.aliyun.com/g' /etc/apt/sources.list && \ |
| 8 | + sed -i 's/archive.ubuntu.com/mirrors.aliyun.com/g' /etc/apt/sources.list && \ |
9 | 9 | mkdir -p /build_temp/python36 /build_temp/nodejs && \ |
10 | 10 | apt update && \ |
11 | | - apt install -y binutils software-properties-common \ |
| 11 | + apt install -y binutils software-properties-common lld \ |
12 | 12 | gconf2 libxkbfile-dev p7zip-full make libssh2-1-dev libkrb5-dev wget curl \ |
13 | 13 | openssl pkg-config build-essential && \ |
14 | | - add-apt-repository ppa:ubuntu-toolchain-r/test && \ |
| 14 | + apt install -y aptitude &&\ |
| 15 | + apt install -y nodejs &&\ |
| 16 | + apt install -y gosu unzip python && \ |
| 17 | + apt clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* |
| 18 | +RUN add-apt-repository ppa:ubuntu-toolchain-r/test && \ |
15 | 19 | apt update && \ |
16 | 20 | apt install -y gcc-9 g++-9 lld && \ |
17 | 21 | update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 90 --slave /usr/bin/g++ g++ /usr/bin/g++-9 && \ |
18 | | - cd /build_temp/python36 && \ |
19 | | - apt-get install -y aptitude &&\ |
20 | | - aptitude -y install gcc make zlib1g-dev libffi-dev libssl-dev &&\ |
| 22 | + aptitude -y install gcc make zlib1g-dev libffi-dev libssl-dev && \ |
| 23 | + apt clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* |
| 24 | +RUN cd /build_temp/python36 && \ |
21 | 25 | mkdir -p test && cd test &&\ |
22 | 26 | wget http://npmmirror.com/mirrors/python/3.8.10/Python-3.8.10.tgz &&\ |
23 | 27 | tar -xvf Python-3.8.10.tgz &&\ |
24 | 28 | chmod -R +x Python-3.8.10 &&\ |
25 | 29 | cd Python-3.8.10/ &&\ |
26 | 30 | ./configure &&\ |
27 | | - aptitude -y install libffi-dev libssl-dev &&\ |
28 | 31 | make && make install &&\ |
29 | 32 | cd /build_temp/nodejs &&\ |
30 | 33 | wget https://deb.nodesource.com/setup_16.x &&\ |
31 | 34 | chmod +x setup_16.x &&\ |
32 | 35 | ./setup_16.x &&\ |
33 | | - apt-get install -y nodejs &&\ |
34 | 36 | rm -rf /build_temp && \ |
35 | | - apt install -y gosu unzip python && \ |
36 | 37 | gosu nobody true && \ |
37 | 38 | useradd -s /bin/bash -m user |
38 | 39 |
|
|
0 commit comments