Skip to content

Commit

Permalink
Merge pull request #4 from gynzy/feat/reduce-gcloud-footprint
Browse files Browse the repository at this point in the history
perf: reduce footprint
  • Loading branch information
genisd authored Nov 21, 2023
2 parents 24a8aac + 04519b3 commit 4fbe1fc
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,12 @@ RUN apk update && \
apk upgrade && \
apk add --no-cache git curl python3 bash

# Downloading gcloud package
RUN curl https://dl.google.com/dl/cloudsdk/release/google-cloud-sdk.tar.gz > /tmp/google-cloud-sdk.tar.gz

# Installing the package
# Downloading gcloud package and install
RUN mkdir -p /usr/local/gcloud \
&& tar -C /usr/local/gcloud -xvf /tmp/google-cloud-sdk.tar.gz \
&& /usr/local/gcloud/google-cloud-sdk/install.sh
&& curl https://dl.google.com/dl/cloudsdk/release/google-cloud-sdk.tar.gz | tar xvzf - -C /usr/local/gcloud \
&& /usr/local/gcloud/google-cloud-sdk/install.sh \
&& /usr/local/gcloud/google-cloud-sdk/bin/gcloud components remove bq gsutil \
&& rm -rf /usr/local/gcloud/google-cloud-sdk/.install/.backup

# Adding the package path to local
ENV PATH $PATH:/usr/local/gcloud/google-cloud-sdk/bin
Expand Down

0 comments on commit 4fbe1fc

Please sign in to comment.