Signed-off-by: Jess Frazelle <jess@mesosphere.com>
This commit is contained in:
Jess Frazelle 2016-05-16 20:06:27 -07:00
parent 178548a686
commit 948e7efaa6
No known key found for this signature in database
GPG Key ID: 18F3685C0022BFF3

22
gcloud/Dockerfile Normal file
View File

@ -0,0 +1,22 @@
FROM python:2-alpine
RUN set -x \
&& apk add --no-cache --virtual .build-deps \
curl \
ca-certificates \
tar \
&& curl -sSL -o /tmp/google-cloud-sdk.tar.gz https://dl.google.com/dl/cloudsdk/release/google-cloud-sdk.tar.gz \
&& mkdir -p /usr/src/google-cloud-sdk \
&& tar -xzf /tmp/google-cloud-sdk.tar.gz -C /usr/src/google-cloud-sdk --strip-components 1 \
&& rm /tmp/google-cloud-sdk.tar.gz \
&& ( \
cd /usr/src/google-cloud-sdk \
&& ./install.sh \
--usage-reporting false \
--path-update true \
) \
&& apk del .build-deps
WORKDIR /root
ENTRYPOINT ["/usr/src/google-cloud-sdk/bin/gcloud"]