/
Dockerfile
23 lines (18 loc) · 1009 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
FROM alpine:3.19
# Note: Latest version of kubectl may be found at:
# https://dl.k8s.io/release/stable.txt
ENV KUBE_LATEST_VERSION="v1.29.3"
# Note: Latest version of helm may be found at:
# https://github.com/kubernetes/helm/releases
ENV HELM_VERSION="v3.14.3"
ENV DOCTL_VERSION=1.104.0
RUN apk add --no-cache ca-certificates bash git openssh curl \
&& wget -q https://dl.k8s.io/release/${KUBE_LATEST_VERSION}/bin/linux/amd64/kubectl -O /usr/local/bin/kubectl \
&& chmod +x /usr/local/bin/kubectl \
&& wget -q https://get.helm.sh/helm-${HELM_VERSION}-linux-amd64.tar.gz -O - | tar -xzO linux-amd64/helm > /usr/local/bin/helm \
&& chmod +x /usr/local/bin/helm \
&& mkdir /lib64 && ln -s /lib/libc.musl-x86_64.so.1 /lib64/ld-linux-x86-64.so.2 \
&& wget -q https://github.com/digitalocean/doctl/releases/download/v${DOCTL_VERSION}/doctl-${DOCTL_VERSION}-linux-amd64.tar.gz -O - | tar -xzO doctl > /usr/local/bin/doctl \
&& chmod +x /usr/local/bin/doctl
WORKDIR /config
CMD bash