This commit is contained in:
parent
7b19a1c3ac
commit
246dfc03e2
18
Dockerfile
18
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/<name>/<name>/releases/latest | \
|
||||
# jq -r '.assets[] | select(.name | contains("amd64")) | .browser_download_url' | \
|
||||
# xargs -I {} curl -L -o /tmp/<file> {}
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user