From e9ad245da7978c82eca697c4ec134d29648303c0 Mon Sep 17 00:00:00 2001 From: Philippe Date: Tue, 30 Nov 2021 21:30:58 +0100 Subject: [PATCH] fix: issue with kubectl version not download --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 22f0b3a..0d91fb3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,5 @@ FROM vault AS builder WORKDIR /data/ -ENV KUBEVERSION=v1.20.13 RUN apk add jq rclone curl gcc musl-dev python3-dev libffi-dev openssl-dev cargo make py3-pip ca-certificates RUN python3 -m venv /data/azure-cli RUN source /data/azure-cli/bin/activate && pip install azure-cli @@ -10,5 +9,6 @@ RUN apk add jq rclone curl python3 ca-certificates COPY --from=builder /data/azure-cli /data/azure-cli ENV PYTHONPATH=/data/azure-cli ENV PATH=/data/azure-cli/bin/:$PATH +ENV KUBEVERSION=v1.20.13 RUN curl -L "https://dl.k8s.io/release/${KUBEVERSION}/bin/linux/amd64/kubectl" -o /usr/bin/kubectl RUN chmod +x /usr/bin/kubectl