This reverts commit
d06d6a3f1454231ac9fa7304f22a0c2f3f246e13.
Reason for revert: The "apt-get update" still fails after this change.
Issue-ID: NONRTRIC-573
Change-Id: I0ea4a8ef0de695778c06e5e505940e85c3001dce
Signed-off-by: RehanRaza <muhammad.rehan.raza@est.tech>
ARG JAR
-#Install wget
-RUN apt-get update && apt-get install -y wget
+#Install curl and wget
+RUN apt-get update && apt-get install -y --no-install-recommends curl wget && rm -rf /var/lib/apt/lists/*
#Install helm
RUN wget -O helm.tar.gz https://get.helm.sh/helm-v3.6.1-linux-amd64.tar.gz
RUN mv linux-amd64/helm /usr/local/bin/helm
#Install kubectl and configure
-RUN wget https://dl.k8s.io/release/v1.20.2/bin/linux/amd64/kubectl
+RUN curl -LO https://dl.k8s.io/release/v1.20.2/bin/linux/amd64/kubectl
RUN chmod +x ./kubectl