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
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