Change base image of helm-manager to alpine 48/6648/1
authorRehanRaza <muhammad.rehan.raza@est.tech>
Thu, 2 Sep 2021 13:14:42 +0000 (15:14 +0200)
committerRehanRaza <muhammad.rehan.raza@est.tech>
Thu, 2 Sep 2021 13:16:50 +0000 (15:16 +0200)
The alpine image seems to be more stable and is slim as compared to debian image.
After this change, the docker image size has shrinked from 559MB to 472MB.

Change-Id: I66693c2b0c06b65f0d5e5e64f8fd417bbabc7f25
Issue-ID: NONRTRIC-573
Signed-off-by: RehanRaza <muhammad.rehan.raza@est.tech>
helm-manager/Dockerfile

index a70af54..c54b615 100644 (file)
 #  ============LICENSE_END=================================================
 #
 
-FROM openjdk:11-jre-slim
+FROM adoptopenjdk/openjdk11:jre-11.0.11_9-alpine
 
 ARG JAR
 
 #Install wget
-RUN apt-get update && apt-get install -y wget
+RUN apk update && apk add wget
 
 #Install helm
 RUN wget -O helm.tar.gz https://get.helm.sh/helm-v3.6.1-linux-amd64.tar.gz