Created
September 4, 2017 15:52
-
-
Save salrashid123/250f544e924e43d26e6afac0297d90c2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM alpine | |
RUN apk add --update curl python bash && rm -rf /var/cache/apk/* | |
ENV HOME / | |
#RUN curl https://sdk.cloud.google.com | bash | |
ARG CLOUD_SDK_VERSION=151.0.1 | |
ARG SHA256SUM=26b84898bc7834664f02b713fd73c7787e62827d2d486f58314cdf1f6f6c56bb | |
RUN curl -O https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-${CLOUD_SDK_VERSION}-linux-x86_64.tar.gz | |
RUN echo "${SHA256SUM} google-cloud-sdk-${CLOUD_SDK_VERSION}-linux-x86_64.tar.gz" > google-cloud-sdk-${CLOUD_SDK_VERSION}-linux-x86_64.tar.gz.sha256 | |
RUN sha256sum -c google-cloud-sdk-${CLOUD_SDK_VERSION}-linux-x86_64.tar.gz.sha256 | |
RUN tar xzf google-cloud-sdk-${CLOUD_SDK_VERSION}-linux-x86_64.tar.gz | |
ENV PATH /google-cloud-sdk/bin:$PATH | |
RUN gcloud config set core/disable_usage_reporting true | |
RUN gcloud config set component_manager/disable_update_check true | |
VOLUME ["/.config"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment