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:
parent
dc042d87cb
commit
2278de024f
@ -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 \
|
||||||
|
@ -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 \
|
||||||
|
@ -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 \
|
||||||
|
@ -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 \
|
||||||
|
@ -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 \
|
||||||
|
@ -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 \
|
||||||
|
@ -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 \
|
||||||
|
@ -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 \
|
||||||
|
@ -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 \
|
||||||
|
@ -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 \
|
||||||
|
Loading…
Reference in New Issue
Block a user