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