2023-05-19 14:47:50 +08:00
|
|
|
FROM alpine:3.18.0
|
|
|
|
|
2023-06-02 10:22:28 +08:00
|
|
|
LABEL smallkoudai <smallkoudai@gmail.com>
|
2023-05-19 14:47:50 +08:00
|
|
|
|
|
|
|
ARG KUBE_VERSION=v1.23.12
|
|
|
|
RUN apk add --update ca-certificates gettext git --no-cache && apk add --update -t deps curl && \
|
|
|
|
curl -sL https://dl.k8s.io/release/${KUBE_VERSION}/bin/linux/amd64/kubectl -o /usr/local/bin/kubectl && \
|
|
|
|
chmod +x /usr/local/bin/kubectl && apk del --purge deps && rm /var/cache/apk/*
|