-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (18 loc) · 767 Bytes
/
Dockerfile
File metadata and controls
27 lines (18 loc) · 767 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
FROM alpine:3.10 as build
LABEL maintainer="Mario Siegenthaler <mario.siegenthaler@linkyard.ch>"
RUN apk add --update --no-cache ca-certificates git
ENV VERSION=v3.0.0
ENV FILENAME=helm-${VERSION}-linux-amd64.tar.gz
ENV SHA256SUM=10e1fdcca263062b1d7b2cb93a924be1ef3dd6c381263d8151dd1a20a3d8c0dc
WORKDIR /
RUN apk add --update -t deps curl tar gzip
RUN curl -L https://get.helm.sh/${FILENAME} > ${FILENAME} && \
echo "${SHA256SUM} ${FILENAME}" > helm_${VERSION}_SHA256SUMS && \
sha256sum -cs helm_${VERSION}_SHA256SUMS && \
tar zxv -C /tmp -f ${FILENAME} && \
rm -f ${FILENAME}
# The image we keep
FROM alpine:3.10
RUN apk add --update --no-cache git ca-certificates
COPY --from=build /tmp/linux-amd64/helm /bin/helm
ENTRYPOINT ["/bin/helm"]