2016-05-17 05:06:27 +02:00
|
|
|
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
|
2016-05-27 23:24:17 +02:00
|
|
|
ENV PATH $PATH:/usr/src/google-cloud-sdk/bin
|
2016-05-17 05:06:27 +02:00
|
|
|
|
2016-05-27 23:24:17 +02:00
|
|
|
ENTRYPOINT ["gcloud"]
|