0 votes
1 view
in GCP by (16.4k points)
recategorized by

How can I build a Docker container with Google's Cloud Command Line Tool/SDK?

The script at the URL https://sdk.cloud.google.com appears to require user input so it doesn't work in a docker file.

1 Answer

+1 vote
by (45.5k points)
selected by
 
Best answer

You can try installing the google cloud SDK in a docker image by using alpine: 

FROM alpine:3.6 RUN apk add --update \ python \ curl \ which \ bash RUN curl -sSL https://sdk.cloud.google.com | bash ENV PATH $PATH:/root/google-cloud-sdk/bin

Hope this helps!

...