Commit 2278de02 authored by Pratik Raj's avatar Pratik Raj Committed by Maria Matejka
Browse files

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: default avatarPratik Raj <rajpratik71@gmail.com>
parent dc042d87
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 \
+1 −1
Original line number Diff line number Diff line
@@ -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 \
+1 −1
Original line number Diff line number Diff line
@@ -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 \
+1 −1
Original line number Diff line number Diff line
@@ -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 \
+1 −1
Original line number Diff line number Diff line
@@ -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 \
Loading