44 lines
1.6 KiB
Docker
44 lines
1.6 KiB
Docker
# This docker file starts server.py (located at src/apiserver/visualization)
|
|
# which accepts a post request that resolves to html that depicts a specified
|
|
# visualization. More details about this process can be found in the server.py
|
|
# and exporter.py files in the directory specified above.
|
|
|
|
# Copyright 2019 Google LLC
|
|
#
|
|
# 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.13.1-py3
|
|
|
|
RUN apt-get update \
|
|
&& apt-get install -y wget curl tar
|
|
|
|
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 -xf /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
|
|
|
|
WORKDIR /src
|
|
|
|
COPY backend/src/apiserver/visualization/requirements.txt /src
|
|
|
|
RUN pip3 install -r requirements.txt
|
|
|
|
COPY backend/src/apiserver/visualization/license.sh /src
|
|
COPY backend/src/apiserver/visualization/third_party_licenses.csv /src
|
|
|
|
RUN ./license.sh third_party_licenses.csv /usr/licenses
|
|
|
|
COPY backend/src/apiserver/visualization /src
|
|
|
|
ENTRYPOINT [ "python3", "server.py" ] |