Enhancement debian package manager apt-get tweaks 10/111610/1
authorPratik Raj <rajpratik71@gmail.com>
Sun, 23 Aug 2020 18:24:10 +0000 (23:54 +0530)
committerPratik Raj <rajpratik71@gmail.com>
Sun, 23 Aug 2020 18:24:45 +0000 (23:54 +0530)
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 <rajpratik71@gmail.com>
Change-Id: Id85ea5782fe153b8fca8f2009e31a43c9e6d216b

distribution/src/main/assembly/Dockerfile

index 6c82020..85db82f 100644 (file)
@@ -5,7 +5,7 @@ MAINTAINER "Lu Ji" <lu.ji3@zte.com.cn>
 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