Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in GCP by (19.7k 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.

closed

1 Answer

+1 vote
by (62.9k 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!

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...