2016-11-25 21:21:53 +01:00
|
|
|
RUN REPO=http://cdn-fastly.deb.debian.org && \
|
|
|
|
echo "deb $REPO/debian jessie main\ndeb $REPO/debian jessie-updates main\ndeb $REPO/debian-security jessie/updates main" > /etc/apt/sources.list
|
|
|
|
|
2017-01-28 20:50:37 +01:00
|
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
|
|
|
|
2017-04-23 02:52:31 +02:00
|
|
|
RUN apt-get update --yes && apt-get install --no-install-recommends --yes \
|
2016-11-25 21:21:53 +01:00
|
|
|
automake \
|
|
|
|
autogen \
|
|
|
|
bash \
|
|
|
|
build-essential \
|
2016-11-29 21:37:23 +01:00
|
|
|
bc \
|
2016-11-25 21:21:53 +01:00
|
|
|
bzip2 \
|
|
|
|
ca-certificates \
|
|
|
|
curl \
|
|
|
|
file \
|
2018-04-13 20:56:49 +02:00
|
|
|
gettext \
|
2016-11-25 21:21:53 +01:00
|
|
|
gzip \
|
2017-01-30 15:47:19 +01:00
|
|
|
zip \
|
2016-11-25 21:21:53 +01:00
|
|
|
make \
|
|
|
|
ncurses-dev \
|
|
|
|
pkg-config \
|
|
|
|
libtool \
|
|
|
|
python \
|
2017-01-29 17:37:05 +01:00
|
|
|
python-pip \
|
2016-11-25 21:21:53 +01:00
|
|
|
rsync \
|
|
|
|
sed \
|
2017-05-10 05:04:33 +02:00
|
|
|
ssh \
|
2016-11-25 21:21:53 +01:00
|
|
|
bison \
|
|
|
|
flex \
|
|
|
|
tar \
|
2017-01-30 12:44:53 +01:00
|
|
|
pax \
|
2016-11-25 21:21:53 +01:00
|
|
|
vim \
|
|
|
|
wget \
|
2018-04-13 20:56:49 +02:00
|
|
|
xz-utils \
|
|
|
|
zlib1g-dev && \
|
2017-02-03 12:40:43 +01:00
|
|
|
apt-get clean --yes
|
2017-04-23 02:52:31 +02:00
|
|
|
|
|
|
|
ENV GOSU_VERSION 1.10
|
|
|
|
RUN set -x \
|
2018-03-29 21:07:54 +02:00
|
|
|
&& apt-get update && rm -rf /var/lib/apt/lists/* \
|
2017-04-23 02:52:31 +02:00
|
|
|
&& dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')" \
|
2018-03-29 21:07:54 +02:00
|
|
|
&& curl -# -o /usr/local/bin/gosu -LO "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch" \
|
|
|
|
&& curl -# -o /usr/local/bin/gosu.asc -LO "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc" \
|
2017-04-23 02:52:31 +02:00
|
|
|
&& export GNUPGHOME="$(mktemp -d)" \
|
|
|
|
&& gpg --keyserver ha.pool.sks-keyservers.net --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4 \
|
|
|
|
&& gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu \
|
|
|
|
&& rm -r "$GNUPGHOME" /usr/local/bin/gosu.asc \
|
|
|
|
&& chmod +x /usr/local/bin/gosu \
|
|
|
|
&& gosu nobody true
|