From 0a2aefdfc023cb72e9a7a8f92cebfdf18b069471 Mon Sep 17 00:00:00 2001 From: Pratik Raj Date: Fri, 6 Mar 2020 20:49:18 +0530 Subject: [PATCH] debian package manager optimization 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 --- graphicsfuzz/src/main/scripts/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/graphicsfuzz/src/main/scripts/Dockerfile b/graphicsfuzz/src/main/scripts/Dockerfile index 44ccebc5b..e03b78ddf 100644 --- a/graphicsfuzz/src/main/scripts/Dockerfile +++ b/graphicsfuzz/src/main/scripts/Dockerfile @@ -17,10 +17,10 @@ FROM ubuntu:16.04 RUN \ apt-get update && \ - apt-get -y install software-properties-common && \ + apt-get --no-install-recommends -y install software-properties-common && \ add-apt-repository ppa:orangain/opencv && \ apt-get update && \ - apt-get -y install openjdk-8-jdk python python-opencv ipython python-six && \ + apt-get --no-install-recommends -y install openjdk-8-jdk python python-opencv ipython python-six && \ apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* COPY . /data/server/