diff --git a/Dockerfile b/Dockerfile index 3fd0beb..bd5de1b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,7 @@ FROM $BASE_IMAGE RUN apk add -U --no-cache openssl # download and install kubectl -ARG KUBECTL_VERSION=v9.0.10 - -RUN curl -LO https://storage.googleapis.com/kubernetes-release/release/${KUBECTL_VERSION}/bin/linux/amd64/kubectl -o /usr/bin/kubectl \ +ARG KUBECTL_VERSION +ENV KUBECTL_VERSION ${CONT_IMG_VER:-v9.0.10} +RUN curl -LO https://storage.googleapis.com/kubernetes-release/release/$KUBECTL_VERSION/bin/linux/amd64/kubectl -o /usr/bin/kubectl \ && chmod +x /usr/bin/kubectl \