mirror of https://github.com/kubeflow/examples.git
34 lines
1.2 KiB
Docker
34 lines
1.2 KiB
Docker
# Copyright 2018 The Kubeflow Authors All rights reserved.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
FROM tensorflow/tensorflow:1.15.0-py3
|
|
|
|
# install gcloud
|
|
RUN apt-get update && apt-get install -y jq
|
|
|
|
RUN curl https://dl.google.com/dl/cloudsdk/release/google-cloud-sdk.tar.gz > /tmp/google-cloud-sdk.tar.gz
|
|
RUN mkdir -p /usr/local/gcloud
|
|
RUN tar -C /usr/local/gcloud -xvf /tmp/google-cloud-sdk.tar.gz
|
|
RUN /usr/local/gcloud/google-cloud-sdk/install.sh
|
|
|
|
ENV PATH $PATH:/usr/local/gcloud/google-cloud-sdk/bin
|
|
|
|
# install python packages
|
|
RUN pip3 install google-cloud-storage==1.17.0 \
|
|
google-cloud-bigquery==1.6.0 \
|
|
pandas==0.23.4
|
|
|
|
COPY . /opt/workdir
|
|
WORKDIR /opt/workdir
|