0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-11-09 20:58:44 +00:00

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 <rajpratik71@gmail.com>
This commit is contained in:
Pratik Raj 2020-03-10 17:00:57 +05:30 committed by Maria Matejka
parent dc042d87cb
commit 2278de024f
10 changed files with 10 additions and 10 deletions

View File

@ -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 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 update -o Acquire::Check-Valid-Until=false
RUN apt-get -y upgrade RUN apt-get -y upgrade
RUN apt-get -y install \ RUN apt-get --no-install-recommends install -y \
autoconf \ autoconf \
build-essential \ build-essential \
flex \ flex \

View File

@ -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 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 update -o Acquire::Check-Valid-Until=false
RUN apt-get -y upgrade RUN apt-get -y upgrade
RUN apt-get -y install \ RUN apt-get --no-install-recommends install -y \
autoconf \ autoconf \
build-essential \ build-essential \
flex \ flex \

View File

@ -3,7 +3,7 @@ ENV DEBIAN_FRONTEND noninteractive
RUN sed -i 's/deb.debian.org/ftp.cz.debian.org/' /etc/apt/sources.list RUN sed -i 's/deb.debian.org/ftp.cz.debian.org/' /etc/apt/sources.list
RUN apt-get -y update RUN apt-get -y update
RUN apt-get -y upgrade RUN apt-get -y upgrade
RUN apt-get -y install \ RUN apt-get --no-install-recommends install -y \
autoconf \ autoconf \
build-essential \ build-essential \
flex \ flex \

View File

@ -3,7 +3,7 @@ ENV DEBIAN_FRONTEND noninteractive
RUN sed -i 's/deb.debian.org/ftp.cz.debian.org/' /etc/apt/sources.list RUN sed -i 's/deb.debian.org/ftp.cz.debian.org/' /etc/apt/sources.list
RUN apt-get -y update RUN apt-get -y update
RUN apt-get -y upgrade RUN apt-get -y upgrade
RUN apt-get -y install \ RUN apt-get --no-install-recommends install -y \
autoconf \ autoconf \
build-essential \ build-essential \
flex \ flex \

View File

@ -3,7 +3,7 @@ ENV DEBIAN_FRONTEND noninteractive
RUN sed -i 's/deb.debian.org/ftp.cz.debian.org/' /etc/apt/sources.list RUN sed -i 's/deb.debian.org/ftp.cz.debian.org/' /etc/apt/sources.list
RUN apt-get -y update RUN apt-get -y update
RUN apt-get -y upgrade RUN apt-get -y upgrade
RUN apt-get -y install \ RUN apt-get --no-install-recommends install -y \
autoconf \ autoconf \
build-essential \ build-essential \
flex \ flex \

View File

@ -3,7 +3,7 @@ ENV DEBIAN_FRONTEND noninteractive
RUN sed -i 's/deb.debian.org/ftp.cz.debian.org/' /etc/apt/sources.list RUN sed -i 's/deb.debian.org/ftp.cz.debian.org/' /etc/apt/sources.list
RUN apt-get -y update RUN apt-get -y update
RUN apt-get -y upgrade RUN apt-get -y upgrade
RUN apt-get -y install \ RUN apt-get --no-install-recommends install -y \
autoconf \ autoconf \
build-essential \ build-essential \
flex \ flex \

View File

@ -3,7 +3,7 @@ ENV DEBIAN_FRONTEND noninteractive
RUN sed -i 's/deb.debian.org/ftp.cz.debian.org/' /etc/apt/sources.list RUN sed -i 's/deb.debian.org/ftp.cz.debian.org/' /etc/apt/sources.list
RUN apt-get -y update RUN apt-get -y update
RUN apt-get -y upgrade RUN apt-get -y upgrade
RUN apt-get -y install \ RUN apt-get --no-install-recommends install -y \
autoconf \ autoconf \
build-essential \ build-essential \
flex \ flex \

View File

@ -3,7 +3,7 @@ ENV DEBIAN_FRONTEND noninteractive
RUN sed -i 's/deb.debian.org/ftp.cz.debian.org/' /etc/apt/sources.list RUN sed -i 's/deb.debian.org/ftp.cz.debian.org/' /etc/apt/sources.list
RUN apt-get -y update RUN apt-get -y update
RUN apt-get -y upgrade RUN apt-get -y upgrade
RUN apt-get -y install \ RUN apt-get --no-install-recommends install -y \
autoconf \ autoconf \
build-essential \ build-essential \
flex \ flex \

View File

@ -3,7 +3,7 @@ ENV DEBIAN_FRONTEND noninteractive
RUN sed -i 's/deb.debian.org/ftp.cz.debian.org/' /etc/apt/sources.list RUN sed -i 's/deb.debian.org/ftp.cz.debian.org/' /etc/apt/sources.list
RUN apt-get -y update RUN apt-get -y update
RUN apt-get -y upgrade RUN apt-get -y upgrade
RUN apt-get -y install \ RUN apt-get --no-install-recommends install -y \
autoconf \ autoconf \
build-essential \ build-essential \
flex \ flex \

View File

@ -3,7 +3,7 @@ ENV DEBIAN_FRONTEND noninteractive
RUN sed -i 's/deb.debian.org/ftp.cz.debian.org/' /etc/apt/sources.list RUN sed -i 's/deb.debian.org/ftp.cz.debian.org/' /etc/apt/sources.list
RUN apt-get -y update RUN apt-get -y update
RUN apt-get -y upgrade RUN apt-get -y upgrade
RUN apt-get -y install \ RUN apt-get --no-install-recommends install -y \
autoconf \ autoconf \
build-essential \ build-essential \
flex \ flex \