common.debian: Optimize image size combining RUN instructions

This commit is contained in:
Jean-Christophe Fillion-Robin 2018-06-07 02:26:54 -04:00
parent 2b93dd5412
commit 47d2738159
No known key found for this signature in database
GPG Key ID: BAF1E1AEB9097A41

View File

@ -1,12 +1,13 @@
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
# Image build scripts
COPY imagefiles/install-gosu-binary.sh /buildscripts/
ARG DEBIAN_FRONTEND=noninteractive
ARG REPO=http://cdn-fastly.deb.debian.org
RUN \
bash -c "echo \"deb $REPO/debian jessie main\" > /etc/apt/sources.list" && \
bash -c "echo \"deb $REPO/debian jessie-updates main\" >> /etc/apt/sources.list" && \
bash -c "echo \"deb $REPO/debian-security jessie/updates main\" >> /etc/apt/sources.list" && \
apt-get update --yes && \
apt-get install --no-install-recommends --yes \
automake \