From 47ee1c11bbd109e04d88f80b12fe6fedc0eeee01 Mon Sep 17 00:00:00 2001 From: Ali Khan Date: Mon, 22 Jul 2024 09:42:56 -0400 Subject: [PATCH] add gcloud cli (for gcs storage cp) --- Dockerfile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 818b5ef..6858a26 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,10 @@ FROM python:bullseye as python +#install gcloud cli +RUN apt-get update \ + && apt-get install -y apt-transport-https ca-certificates gnupg curl \ + && 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 && curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo gpg --dearmor -o /usr/share/keyrings/cloud.google.gpg && apt-get update -y && apt-get install google-cloud-cli -y + #install java from Amazon corretto ARG version=8.402.08-1 @@ -15,7 +20,7 @@ ARG version=8.402.08-1 RUN set -eux \ && apt-get update \ && apt-get install -y --no-install-recommends \ - curl ca-certificates gnupg software-properties-common fontconfig java-common \ + curl gnupg software-properties-common fontconfig java-common \ && curl -fL https://apt.corretto.aws/corretto.key | apt-key add - \ && add-apt-repository 'deb https://apt.corretto.aws stable main' \ && mkdir -p /usr/share/man/man1 || true \