debian: Don't install recommended software

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) .

Fixes: #427 

Signed-off-by: Pratik Raj <rajpratik71@gmail.com>
This commit is contained in:
Pratik Raj
2020-03-06 15:42:40 +05:30
parent 8a9aa41247
commit 7c92854e5d
2 changed files with 2 additions and 2 deletions

View File

@@ -7,7 +7,7 @@
from docker.io/debian:@OS_VERSION@ from docker.io/debian:@OS_VERSION@
# RUN commands # RUN commands
RUN apt-get update && apt-get install -y \ RUN apt-get update && apt-get --no-install-recommends install -y \
autoconf \ autoconf \
automake \ automake \
binutils \ binutils \

View File

@@ -11,7 +11,7 @@ from docker.io/ubuntu:@OS_VERSION@
# Install any package need to create a rootfs (package manager, extra tools) # Install any package need to create a rootfs (package manager, extra tools)
# RUN commands # RUN commands
RUN apt-get update && apt-get install -y \ RUN apt-get update && apt-get --no-install-recommends install -y \
autoconf \ autoconf \
automake \ automake \
binutils \ binutils \