Some 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-08-18 23:36:18 +05:30
parent ffe3b3468d
commit e9bafc6785
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ FROM debian:jessie
# ^ Cannot be Alpine since it does not support systemctl
# ^ Systemctl is used to restart kubelet upon successful run of run.sh
RUN apt-get update && apt-get -yq install curl jq
RUN apt-get update && apt-get --no-install-recommends -yq install apt-utils ca-certificates apt-transport-https curl jq
ADD run.sh /run.sh