From af9a2eb3907f17843b6d5c6157b1458853d41c4d Mon Sep 17 00:00:00 2001 From: Pratik Raj Date: Sun, 23 Aug 2020 23:54:10 +0530 Subject: Enhancement debian package manager apt-get 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 which result in faster download and setup Refer to blog at [Ubuntu Blog](https://ubuntu.com/blog/we-reduced-our-docker-images-by-60-with-no-install-recommends) Issue-ID: USECASEUI-481 Signed-off-by: Pratik Raj Change-Id: Id85ea5782fe153b8fca8f2009e31a43c9e6d216b --- distribution/src/main/assembly/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/distribution/src/main/assembly/Dockerfile b/distribution/src/main/assembly/Dockerfile index 6c820200..85db82f7 100644 --- a/distribution/src/main/assembly/Dockerfile +++ b/distribution/src/main/assembly/Dockerfile @@ -5,7 +5,7 @@ MAINTAINER "Lu Ji" EXPOSE 8443 RUN apt-get update && \ - apt-get install -y openjdk-8-jdk + apt-get install -y -qq --no-install-recommends openjdk-8-jdk #configure the JDK RUN sed -i 's|#networkaddress.cache.ttl=-1|networkaddress.cache.ttl=10|' /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/security/java.security -- cgit 1.2.3-korg