Skip to content

Commit

Permalink
Some debian package manager tweaks
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
Rajpratik71 committed Aug 18, 2020
1 parent ffe3b34 commit e9bafc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hooks/nvidia-bootstrap/image/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit e9bafc6

Please sign in to comment.