From 246dfc03e2267e2fe9e3871fb91533519b50ed1c Mon Sep 17 00:00:00 2001 From: Danny Bessems Date: Fri, 17 Jun 2022 10:51:39 +0200 Subject: [PATCH] Rebase Helm binary --- Dockerfile | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index a7b87d2..78e86c3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,15 +1,17 @@ -# FROM alpine:latest AS download +FROM alpine:latest AS download -# RUN apk --update add --no-cache \ -# curl \ -# jq && \ -# curl -L https://api.github.com/repos///releases/latest | \ -# jq -r '.assets[] | select(.name | contains("amd64")) | .browser_download_url' | \ -# xargs -I {} curl -L -o /tmp/ {} + RUN apk --update add --no-cache \ + curl \ + jq && \ + curl -L https://api.github.com/repos/helm/helm/releases/latest | \ + jq -r '.tag_name' | \ + xargs -I {} curl -L -o /tmp/helm.tar.gz https://get.helm.sh/helm-{}-linux-amd64.tar.gz && \ + tar -xzf /tmp/helm.tar.gz --strip-components=1 -C /tmp FROM debian:11-slim -COPY --from=alpine/helm:latest /usr/bin/helm /usr/bin/helm +#COPY --from=alpine/helm:latest /usr/bin/helm /usr/bin/helm +COPY --from=download /tmp/helm /usr/bin/helm ENV LANG en_US.UTF-8 ENV LANGUAGE en_US:en