-
Notifications
You must be signed in to change notification settings - Fork 133
/
Dockerfile
23 lines (19 loc) · 862 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
ARG BUILDPLATFORM
FROM ${BUILDPLATFORM}alpine:3.20
ARG KUBE_VERSION
ARG HELM_VERSION
ARG TARGETOS
ARG TARGETARCH
ARG YQ_VERSION
RUN apk -U upgrade \
&& apk add --no-cache ca-certificates bash git openssh curl gettext jq \
&& wget -q https://dl.k8s.io/release/v${KUBE_VERSION}/bin/${TARGETOS}/${TARGETARCH}/kubectl -O /usr/local/bin/kubectl \
&& wget -q https://get.helm.sh/helm-v${HELM_VERSION}-${TARGETOS}-${TARGETARCH}.tar.gz -O - | tar -xzO ${TARGETOS}-${TARGETARCH}/helm > /usr/local/bin/helm \
&& wget -q https://github.com/mikefarah/yq/releases/download/v${YQ_VERSION}/yq_${TARGETOS}_${TARGETARCH} -O /usr/local/bin/yq \
&& chmod +x /usr/local/bin/helm /usr/local/bin/kubectl /usr/local/bin/yq \
&& mkdir /config \
&& chmod g+rwx /config /root \
&& kubectl version --client \
&& helm version
WORKDIR /config
CMD bash