diff --git a/docker/build/Dockerfile b/docker/build/Dockerfile index 11a9229a6a..bf2d087b0b 100644 --- a/docker/build/Dockerfile +++ b/docker/build/Dockerfile @@ -13,8 +13,12 @@ RUN curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o / RUN apt update && apt install -y docker-ce docker-ce-cli containerd.io \ && apt-get clean -RUN apt-get install apt-transport-https ca-certificates gnupg -RUN apt-get install -y google-cloud-sdk-gke-gcloud-auth-plugin +RUN apt-get install apt-transport-https ca-certificates +# Add the gcloud CLI distribution URI as a package source and install plugin +RUN curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | gpg --dearmor -o /usr/share/keyrings/cloud.google.gpg \ + && echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main" | tee -a /etc/apt/sources.list.d/google-cloud-sdk.list \ + && apt-get update \ + && apt-get install -y google-cloud-sdk-gke-gcloud-auth-plugin COPY --from=bitnami/kubectl:1.26 /opt/bitnami/kubectl/bin/kubectl /usr/local/bin/