2017-01-28 20:50:37 +01:00
|
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
2018-06-07 08:26:54 +02:00
|
|
|
ARG REPO=http://cdn-fastly.deb.debian.org
|
2017-01-28 20:50:37 +01:00
|
|
|
|
2018-06-05 05:53:38 +02:00
|
|
|
RUN \
|
2019-04-22 16:09:10 +02:00
|
|
|
bash -c "echo \"deb $REPO/debian stretch main contrib non-free\" > /etc/apt/sources.list" && \
|
|
|
|
bash -c "echo \"deb $REPO/debian stretch-updates main contrib non-free\" >> /etc/apt/sources.list" && \
|
|
|
|
bash -c "echo \"deb $REPO/debian-security stretch/updates main\" >> /etc/apt/sources.list" && \
|
|
|
|
bash -c "echo \"deb http://ftp.debian.org/debian stretch-backports main\" >> /etc/apt/sources.list" && \
|
2018-06-05 05:53:38 +02:00
|
|
|
apt-get update --yes && \
|
|
|
|
apt-get install --no-install-recommends --yes \
|
|
|
|
autogen \
|
2020-04-15 03:23:57 +02:00
|
|
|
automake \
|
2018-06-05 05:53:38 +02:00
|
|
|
bash \
|
|
|
|
bc \
|
2020-04-15 03:23:57 +02:00
|
|
|
bison \
|
|
|
|
build-essential \
|
2018-06-05 05:53:38 +02:00
|
|
|
bzip2 \
|
|
|
|
ca-certificates \
|
|
|
|
curl \
|
2019-04-22 16:09:10 +02:00
|
|
|
dirmngr \
|
2018-06-05 05:53:38 +02:00
|
|
|
file \
|
2020-04-15 03:23:57 +02:00
|
|
|
flex \
|
2018-06-05 05:53:38 +02:00
|
|
|
gettext \
|
|
|
|
gzip \
|
2019-04-22 16:09:10 +02:00
|
|
|
gnupg \
|
2020-04-15 03:27:32 +02:00
|
|
|
initramfs-tools \
|
2020-05-06 18:21:11 +02:00
|
|
|
libncurses5 \
|
2020-04-15 03:23:57 +02:00
|
|
|
libtool \
|
2018-06-05 05:53:38 +02:00
|
|
|
make \
|
|
|
|
ncurses-dev \
|
|
|
|
pkg-config \
|
2020-04-15 03:23:57 +02:00
|
|
|
pax \
|
2021-05-26 20:02:47 +02:00
|
|
|
# python3 \
|
|
|
|
# python3-pip \
|
2018-06-05 05:53:38 +02:00
|
|
|
rsync \
|
|
|
|
sed \
|
|
|
|
ssh \
|
|
|
|
tar \
|
|
|
|
vim \
|
|
|
|
wget \
|
|
|
|
xz-utils \
|
2020-04-15 03:23:57 +02:00
|
|
|
zip \
|
2018-06-05 05:53:38 +02:00
|
|
|
zlib1g-dev \
|
2021-05-26 20:02:47 +02:00
|
|
|
# python build
|
|
|
|
libncurses5-dev \
|
|
|
|
libgdbm-dev \
|
|
|
|
libnss3-dev \
|
|
|
|
libssl-dev \
|
|
|
|
libsqlite3-dev \
|
|
|
|
libreadline-dev \
|
|
|
|
libffi-dev \
|
|
|
|
libbz2-dev\
|
2018-06-05 05:53:38 +02:00
|
|
|
&& \
|
2020-06-27 05:37:25 +02:00
|
|
|
apt-get clean --yes
|
2021-05-26 20:02:47 +02:00
|
|
|
|
|
|
|
# build and install python
|
|
|
|
COPY \
|
|
|
|
imagefiles/build-and-install-python.sh \
|
|
|
|
/buildscripts/
|
|
|
|
RUN \
|
|
|
|
set -x && \
|
|
|
|
/buildscripts/build-and-install-python.sh && \
|
|
|
|
rm -rf /buildscripts
|