Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
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 appears to require user input so it doesn't work in a docker file.


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 | bash ENV PATH $PATH:/root/google-cloud-sdk/bin

Hope this helps!

Browse Categories