1+ FROM docker.1ms.run/ubuntu:18.04
2+
3+ WORKDIR /workspace
4+
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+ mkdir -p /build_temp/python36 /build_temp/nodejs && \
10+ apt update && \
11+ apt install -y binutils software-properties-common lld \
12+ gconf2 libxkbfile-dev p7zip-full make libssh2-1-dev libkrb5-dev wget curl \
13+ openssl pkg-config build-essential && \
14+ apt install -y aptitude &&\
15+ apt install -y gosu unzip python && \
16+ apt clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
17+ RUN add-apt-repository ppa:ubuntu-toolchain-r/test && \
18+ apt update && \
19+ apt install -y gcc-10 g++-10 lld && \
20+ update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 90 --slave /usr/bin/g++ g++ /usr/bin/g++-10 && \
21+ aptitude -y install gcc make zlib1g-dev libffi-dev libssl-dev && \
22+ apt clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
23+ RUN cd /build_temp/python36 && \
24+ mkdir -p test && cd test &&\
25+ wget http://npmmirror.com/mirrors/python/3.8.10/Python-3.8.10.tgz &&\
26+ tar -xvf Python-3.8.10.tgz &&\
27+ chmod -R +x Python-3.8.10 &&\
28+ cd Python-3.8.10/ &&\
29+ ./configure &&\
30+ make -j20 && make install &&\
31+ cd /build_temp/nodejs &&\
32+ wget https://deb.nodesource.com/setup_16.x &&\
33+ chmod +x setup_16.x &&\
34+ ./setup_16.x &&\
35+ apt install -y nodejs &&\
36+ rm -rf /build_temp && \
37+ gosu nobody true && \
38+ useradd -s /bin/bash -m user
39+
40+ RUN apt remove -y p7zip p7zip-full p7zip-rar &&\
41+ rm -rf /opt/7z && \
42+ mkdir -p /opt/7z && \
43+ cd /opt/7z && \
44+ wget https://www.7-zip.org/a/7z2107-linux-x64.tar.xz && \
45+ tar -xJf 7z2107-linux-x64.tar.xz && \
46+ ln -s 7zz 7z
47+ ENV PATH=/opt/7z:$PATH
0 commit comments