From d3360e7599b2d2091d97c6b8fbed827c58122f00 Mon Sep 17 00:00:00 2001 From: Pratik Raj Date: Thu, 5 Mar 2020 15:36:02 +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) . --- video_analytics_Intel_GPU/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/video_analytics_Intel_GPU/Dockerfile b/video_analytics_Intel_GPU/Dockerfile index dbdf54a..52c8c96 100644 --- a/video_analytics_Intel_GPU/Dockerfile +++ b/video_analytics_Intel_GPU/Dockerfile @@ -3,11 +3,11 @@ MAINTAINER monique.jones@intel.com LABEL Name=tutorials-base-test Version=0.1.0 RUN apt-get update \ - && apt install -y software-properties-common cpio \ + && apt-get --no-install-recommends install -y software-properties-common cpio \ && rm -rf /var/lib/apt/lists/* RUN add-apt-repository -y ppa:teejee2008/ppa -RUN apt-get update && apt-get install -y \ +RUN apt-get update && apt-get --no-install-recommends install -y \ git \ libssl-dev \ dh-autoreconf \ @@ -36,7 +36,7 @@ RUN apt-get update && apt-get install -y \ libomp-dev \ && rm -rf /var/lib/apt/lists/* -RUN apt-get update && apt-get install -y \ +RUN apt-get update && apt-get --no-install-recommends install -y \ libopencv-dev \ checkinstall \ pkg-config \