mirror of
https://github.com/luzifer-docker/kubectl.git
synced 2024-11-08 15:19:59 +00:00
11 lines
260 B
Docker
11 lines
260 B
Docker
FROM alpine
|
|
|
|
ARG KUBECTL_VERSION=v1.27.0
|
|
|
|
RUN set -ex \
|
|
&& apk --no-cache add \
|
|
bash \
|
|
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
|
|
|