File tree Expand file tree Collapse file tree 1 file changed +29
-13
lines changed
Expand file tree Collapse file tree 1 file changed +29
-13
lines changed Original file line number Diff line number Diff line change 11FROM projectoss/alpine:3.21
2- LABEL organization="projectoss"
3- LABEL maintainer="projectoss-dinushchathurya"
4- LABEL description="Docker image for Helm"
5- LABEL version="latest"
62
7- ENV HELM_VERSION="v4.1.0"
3+ LABEL organization="projectoss" \
4+ maintainer="projectoss-dinushchathurya" \
5+ description="Docker image for Helm"
86
9- RUN apk add --no-cache ca-certificates bash git gnupg jq py-pip
10- RUN apk add --update -t deps curl gettext
11- RUN curl -s -L https://get.helm.sh/helm-${HELM_VERSION}-linux-amd64.tar.gz | tar -xzO linux-amd64/helm > /usr/local/bin/helm
12- RUN chmod +x /usr/local/bin/helm
13- RUN rm -rf /var/cache/apk/*
7+ ARG HELM_VERSION=v4.1.0
8+ ARG TARGETOS
9+ ARG TARGETARCH
10+
11+ ENV HELM_HOME=/opt/helm
12+
13+ RUN set -eux; \
14+ apk add --no-cache \
15+ ca-certificates \
16+ bash \
17+ git \
18+ gnupg \
19+ jq \
20+ curl \
21+ gettext; \
22+ \
23+ curl -fsSL https://get.helm.sh/helm-${HELM_VERSION}-${TARGETOS}-${TARGETARCH}.tar.gz \
24+ | tar -xz; \
25+ \
26+ mv ${TARGETOS}-${TARGETARCH}/helm /usr/local/bin/helm; \
27+ chmod +x /usr/local/bin/helm; \
28+ rm -rf ${TARGETOS}-${TARGETARCH}; \
29+ \
30+ mkdir -p ${HELM_HOME}; \
31+ chmod a+rwx ${HELM_HOME}
1432
15- RUN mkdir -p /opt/helm && chmod a+rwx /opt/helm
16- ENV HELM_HOME="/opt/helm"
1733WORKDIR /opt
18- CMD ["bash" ]
34+ CMD ["bash" ]
You can’t perform that action at this time.
0 commit comments