-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.linux-libc.base
81 lines (74 loc) · 2.12 KB
/
Dockerfile.linux-libc.base
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
FROM amd64/ubuntu:16.04
ARG DEBIAN_FRONTEND=noninteractive
RUN echo 'Preparing base' && \
apt-get update --yes && \
apt-get upgrade --yes && \
echo "path-exclude=/usr/share/locale/*" >> /etc/dpkg/dpkg.cfg.d/01_nodoc && \
echo "path-exclude=/usr/share/man/*" >> /etc/dpkg/dpkg.cfg.d/01_nodoc && \
echo "path-exclude=/usr/share/doc/*" >> /etc/dpkg/dpkg.cfg.d/01_nodoc && \
apt-get install --no-install-recommends --yes \
autogen \
automake \
autopoint \
build-essential \
ca-certificates \
curl \
gettext \
git \
libtool \
make \
patch \
perl \
pkg-config \
unzip \
wget \
zip && \
# python
apt-get install --no-install-recommends --yes \
libreadline-gplv2-dev \
libbz2-dev \
liblzma-dev \
libncursesw5-dev \
libssl-dev \
zlib1g-dev && \
# cmake
apt-get install --no-install-recommends --yes \
libbz2-dev \
liblzma-dev \
libssl-dev \
zlib1g-dev && \
apt-get clean autoclean --yes && \
apt-get autoremove --yes && \
rm -rf /etc/ssh/*key*
RUN echo 'Building Python' && \
mkdir -p /build && \
cd /build && \
curl -O https://www.python.org/ftp/python/3.6.15/Python-3.6.15.tgz && \
if [ "$(sha256sum Python-3.6.15.tgz | cut -d ' ' -f 1)" != "54570b7e339e2cfd72b29c7e2fdb47c0b7b18b7412e61de5b463fc087c13b043" ]; then exit 1; fi && \
tar xzf Python-3.6.15.tgz && \
cd Python-3.6.15 && \
./configure --enable-optimizations && \
make -j"$(nproc)" && \
make altinstall && \
cd / && \
rm -rf /build
RUN echo 'Building cmake' && \
mkdir -p /build && \
cd /build && \
git clone https://gitlab.kitware.com/cmake/cmake.git && \
cd cmake && \
git checkout v3.26.5 && \
mkdir -p build && \
cd build && \
../bootstrap --no-qt-gui \
--system-bzip2 \
--system-liblzma \
--system-zlib \
--prefix=/usr/local && \
make -j"$(nproc)" && \
make install && \
cd / && \
rm -rf /build
WORKDIR /work
COPY entrypoint_base.sh /var/opt
ENTRYPOINT ["/var/opt/entrypoint_base.sh"]