From: Pratik Raj Date: Tue, 10 Mar 2020 11:30:57 +0000 (+0530) Subject: optimization debian package manager tweaks X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2278de024fedda283b5869da7bca93bb990eb8d4;p=thirdparty%2Fbird.git optimization debian package manager tweaks By default, Ubuntu or Debian based "apt" or "apt-get" system installs recommended but not suggested packages . By passing "--no-install-recommends" option, the user lets apt-get know not to consider recommended packages as a dependency to install. This results in smaller downloads and installation of packages . Refer to blog at [Ubuntu Blog](https://ubuntu.com/blog/we-reduced-our-docker-images-by-60-with-no-install-recommends) . Signed-off-by: Pratik Raj --- diff --git a/misc/docker/debian-7-amd64/Dockerfile b/misc/docker/debian-7-amd64/Dockerfile index a4a3841ef..f5bbfb9dd 100644 --- a/misc/docker/debian-7-amd64/Dockerfile +++ b/misc/docker/debian-7-amd64/Dockerfile @@ -4,7 +4,7 @@ RUN echo 'deb http://archive.debian.org/debian/ wheezy main' > /etc/apt/sources. RUN echo 'deb http://archive.debian.org/debian-security/ wheezy/updates main' >> /etc/apt/sources.list RUN apt-get -y update -o Acquire::Check-Valid-Until=false RUN apt-get -y upgrade -RUN apt-get -y install \ +RUN apt-get --no-install-recommends install -y \ autoconf \ build-essential \ flex \ diff --git a/misc/docker/debian-7-i386/Dockerfile b/misc/docker/debian-7-i386/Dockerfile index aa9019ced..e43dd8255 100644 --- a/misc/docker/debian-7-i386/Dockerfile +++ b/misc/docker/debian-7-i386/Dockerfile @@ -4,7 +4,7 @@ RUN echo 'deb http://archive.debian.org/debian/ wheezy main' > /etc/apt/sources. RUN echo 'deb http://archive.debian.org/debian-security/ wheezy/updates main' >> /etc/apt/sources.list RUN apt-get -y update -o Acquire::Check-Valid-Until=false RUN apt-get -y upgrade -RUN apt-get -y install \ +RUN apt-get --no-install-recommends install -y \ autoconf \ build-essential \ flex \ diff --git a/misc/docker/debian-8-amd64/Dockerfile b/misc/docker/debian-8-amd64/Dockerfile index d0e8ed0aa..cc5bd9373 100644 --- a/misc/docker/debian-8-amd64/Dockerfile +++ b/misc/docker/debian-8-amd64/Dockerfile @@ -3,7 +3,7 @@ ENV DEBIAN_FRONTEND noninteractive RUN sed -i 's/deb.debian.org/ftp.cz.debian.org/' /etc/apt/sources.list RUN apt-get -y update RUN apt-get -y upgrade -RUN apt-get -y install \ +RUN apt-get --no-install-recommends install -y \ autoconf \ build-essential \ flex \ diff --git a/misc/docker/debian-8-i386/Dockerfile b/misc/docker/debian-8-i386/Dockerfile index 9dd6f0221..7e40bdeb4 100644 --- a/misc/docker/debian-8-i386/Dockerfile +++ b/misc/docker/debian-8-i386/Dockerfile @@ -3,7 +3,7 @@ ENV DEBIAN_FRONTEND noninteractive RUN sed -i 's/deb.debian.org/ftp.cz.debian.org/' /etc/apt/sources.list RUN apt-get -y update RUN apt-get -y upgrade -RUN apt-get -y install \ +RUN apt-get --no-install-recommends install -y \ autoconf \ build-essential \ flex \ diff --git a/misc/docker/debian-9-amd64/Dockerfile b/misc/docker/debian-9-amd64/Dockerfile index e8a17efc6..eca488407 100644 --- a/misc/docker/debian-9-amd64/Dockerfile +++ b/misc/docker/debian-9-amd64/Dockerfile @@ -3,7 +3,7 @@ ENV DEBIAN_FRONTEND noninteractive RUN sed -i 's/deb.debian.org/ftp.cz.debian.org/' /etc/apt/sources.list RUN apt-get -y update RUN apt-get -y upgrade -RUN apt-get -y install \ +RUN apt-get --no-install-recommends install -y \ autoconf \ build-essential \ flex \ diff --git a/misc/docker/debian-9-i386/Dockerfile b/misc/docker/debian-9-i386/Dockerfile index 73e707505..62fb25649 100644 --- a/misc/docker/debian-9-i386/Dockerfile +++ b/misc/docker/debian-9-i386/Dockerfile @@ -3,7 +3,7 @@ ENV DEBIAN_FRONTEND noninteractive RUN sed -i 's/deb.debian.org/ftp.cz.debian.org/' /etc/apt/sources.list RUN apt-get -y update RUN apt-get -y upgrade -RUN apt-get -y install \ +RUN apt-get --no-install-recommends install -y \ autoconf \ build-essential \ flex \ diff --git a/misc/docker/debian-testing-amd64/Dockerfile b/misc/docker/debian-testing-amd64/Dockerfile index 3b66e3fa1..3f24dbd19 100644 --- a/misc/docker/debian-testing-amd64/Dockerfile +++ b/misc/docker/debian-testing-amd64/Dockerfile @@ -3,7 +3,7 @@ ENV DEBIAN_FRONTEND noninteractive RUN sed -i 's/deb.debian.org/ftp.cz.debian.org/' /etc/apt/sources.list RUN apt-get -y update RUN apt-get -y upgrade -RUN apt-get -y install \ +RUN apt-get --no-install-recommends install -y \ autoconf \ build-essential \ flex \ diff --git a/misc/docker/debian-testing-i386/Dockerfile b/misc/docker/debian-testing-i386/Dockerfile index 998ce9695..1facce4cd 100644 --- a/misc/docker/debian-testing-i386/Dockerfile +++ b/misc/docker/debian-testing-i386/Dockerfile @@ -3,7 +3,7 @@ ENV DEBIAN_FRONTEND noninteractive RUN sed -i 's/deb.debian.org/ftp.cz.debian.org/' /etc/apt/sources.list RUN apt-get -y update RUN apt-get -y upgrade -RUN apt-get -y install \ +RUN apt-get --no-install-recommends install -y \ autoconf \ build-essential \ flex \ diff --git a/misc/docker/ubuntu-14.04-amd64/Dockerfile b/misc/docker/ubuntu-14.04-amd64/Dockerfile index ccac3eb42..3e2ba6a60 100644 --- a/misc/docker/ubuntu-14.04-amd64/Dockerfile +++ b/misc/docker/ubuntu-14.04-amd64/Dockerfile @@ -3,7 +3,7 @@ ENV DEBIAN_FRONTEND noninteractive RUN sed -i 's/deb.debian.org/ftp.cz.debian.org/' /etc/apt/sources.list RUN apt-get -y update RUN apt-get -y upgrade -RUN apt-get -y install \ +RUN apt-get --no-install-recommends install -y \ autoconf \ build-essential \ flex \ diff --git a/misc/docker/ubuntu-16.04-amd64/Dockerfile b/misc/docker/ubuntu-16.04-amd64/Dockerfile index 50a4918c8..eece2d1e4 100644 --- a/misc/docker/ubuntu-16.04-amd64/Dockerfile +++ b/misc/docker/ubuntu-16.04-amd64/Dockerfile @@ -3,7 +3,7 @@ ENV DEBIAN_FRONTEND noninteractive RUN sed -i 's/deb.debian.org/ftp.cz.debian.org/' /etc/apt/sources.list RUN apt-get -y update RUN apt-get -y upgrade -RUN apt-get -y install \ +RUN apt-get --no-install-recommends install -y \ autoconf \ build-essential \ flex \