kubectl/Dockerfile

12 lines
260 B
Text
Raw Permalink Normal View History

2022-12-31 15:15:31 +00:00
FROM alpine
2024-05-15 23:25:07 +00:00
ARG KUBECTL_VERSION=v1.30.1
2022-12-31 15:15:31 +00:00
RUN set -ex \
&& apk --no-cache add \
bash \
2022-12-31 15:15:31 +00:00
curl \
&& curl -sSfL -o /usr/local/bin/kubectl "https://dl.k8s.io/release/${KUBECTL_VERSION}/bin/linux/amd64/kubectl" \
&& chmod 0755 /usr/local/bin/kubectl