summaryrefslogtreecommitdiffstats
path: root/distribution/src/main/assembly
diff options
context:
space:
mode:
authorPratik Raj <rajpratik71@gmail.com>2020-08-23 23:54:10 +0530
committerPratik Raj <rajpratik71@gmail.com>2020-08-23 23:54:45 +0530
commitaf9a2eb3907f17843b6d5c6157b1458853d41c4d (patch)
tree97b6ddcf47115aa8c96b8e2a62160be70ebf25b0 /distribution/src/main/assembly
parent2871e20142655423a9a2402799c5ccbb1704bb60 (diff)
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 <rajpratik71@gmail.com> Change-Id: Id85ea5782fe153b8fca8f2009e31a43c9e6d216b
Diffstat (limited to 'distribution/src/main/assembly')
-rw-r--r--distribution/src/main/assembly/Dockerfile2
1 files changed, 1 insertions, 1 deletions
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" <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