Skip to content

Instantly share code, notes, and snippets.

@rmchale
Created May 24, 2020 15:22
Show Gist options
  • Save rmchale/91564b6c02c9a60bb91bfd2880fabb07 to your computer and use it in GitHub Desktop.
Save rmchale/91564b6c02c9a60bb91bfd2880fabb07 to your computer and use it in GitHub Desktop.
Gcloud Dockerfile
from debian:stable
# install gcloud
RUN apt-get install -y lsb-release
RUN apt-get install -y gnupg2
RUN echo "deb http://packages.cloud.google.com/apt cloud-sdk-$(lsb_release -c -s) main" | tee -a /etc/apt/sources.list.d/google-cloud-sdk.list
RUN curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -
# RUN cat /etc/apt/sources.list.d/google-cloud-sdk.list
RUN apt-get update && apt-get install -y google-cloud-sdk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment