From 0ca5f166abdbee054a7a84779bc1cb50baf12783 Mon Sep 17 00:00:00 2001 From: Pratik Raj Date: Thu, 5 Mar 2020 14:15:36 +0530 Subject: [PATCH] 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) . --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 7106536..a3c0311 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ FROM ubuntu:18.04 ENV DEBIAN_FRONTEND noninteractive RUN apt-get update && \ - apt-get install -y \ + apt-get --no-install-recommends install -y \ autoconf \ curl \ libdrm-dev \