collection.dockerfile/alpine/gcloudcli/Dockerfile
2022-05-24 23:36:14 +08:00

10 lines
410 B
Docker

FROM alpine:3.16
ENV container docker
RUN apk update; apk upgrade; apk add jq bash wget curl python3 sqlite
RUN wget -q -O- https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-368.0.0-linux-x86_64.tar.gz | tar zxf -
COPY *.sh /root/
RUN chmod 755 /root/*.sh
RUN /google-cloud-sdk/install.sh -q
RUN echo 'export PATH=/google-cloud-sdk/bin:$PATH' > /root/.bashrc
ENTRYPOINT ["/bin/bash"]