Skip to content

Instantly share code, notes, and snippets.

@salrashid123
Created September 4, 2017 15:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save salrashid123/09ff761e53e2ed6fecf8067d35709360 to your computer and use it in GitHub Desktop.
Save salrashid123/09ff761e53e2ed6fecf8067d35709360 to your computer and use it in GitHub Desktop.
FROM alpine:3.5
ARG CLOUD_SDK_VERSION=160.0.0
ENV PATH /google-cloud-sdk/bin:$PATH
RUN apk --no-cache add curl python py-crcmod bash libc6-compat && \
curl -O https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-${CLOUD_SDK_VERSION}-linux-x86_64.tar.gz && \
tar xzf google-cloud-sdk-${CLOUD_SDK_VERSION}-linux-x86_64.tar.gz && \
rm google-cloud-sdk-${CLOUD_SDK_VERSION}-linux-x86_64.tar.gz && \
ln -s /lib /lib64 && \
gcloud config set core/disable_usage_reporting true && \
gcloud config set component_manager/disable_update_check true && \
gcloud config set metrics/environment github_docker_image
VOLUME ["/root/.config"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment