Revert "Skip installation of curl in helm-manager"
[nonrtric.git] / helm-manager / Dockerfile
index b9283c0..c7de28a 100644 (file)
@@ -19,14 +19,13 @@ FROM openjdk:11-jre-slim
 
 ARG JAR
 
-#Install curl
-RUN apt-get update
-RUN apt-get install -y curl
+#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 curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3
-RUN chmod 700 get_helm.sh
-RUN ./get_helm.sh
+RUN wget -O helm.tar.gz https://get.helm.sh/helm-v3.6.1-linux-amd64.tar.gz
+RUN tar -zxvf helm.tar.gz
+RUN mv linux-amd64/helm /usr/local/bin/helm
 
 #Install kubectl and configure
 RUN curl -LO https://dl.k8s.io/release/v1.20.2/bin/linux/amd64/kubectl