1FROM ubuntu:16.04
2
3LABEL maintainer="Shanqing Cai <cais@google.com>"
4
5RUN apt-get update
6RUN apt-get install -y \
7    curl \
8    libcurl4-openssl-dev \
9    python \
10    python-pip
11
12# Install Google Cloud SDK
13RUN curl -O https://dl.google.com/dl/cloudsdk/channels/rapid/install_google_cloud_sdk.bash
14RUN chmod +x install_google_cloud_sdk.bash
15RUN ./install_google_cloud_sdk.bash --disable-prompts --install-dir=/var/gcloud
16
17# Install TensorFlow pip from build context.
18COPY tensorflow-*.whl /
19RUN pip install /tensorflow-*.whl
20
21# Copy test files
22RUN mkdir -p /gcs-smoke/python
23COPY gcs_smoke_wrapper.sh /gcs-smoke/
24COPY python/gcs_smoke.py /gcs-smoke/python/
25