1FROM ubuntu:16.04
2
3LABEL maintainer="Terry Heo <terryheo@google.com>"
4
5ENV CI_BUILD_PYTHON=python3.7
6ENV CROSSTOOL_PYTHON_INCLUDE_PATH=/usr/include/python3.7
7
8# Copy and run the install scripts.
9COPY install/*.sh /install/
10RUN /install/install_bootstrap_deb_packages.sh
11RUN add-apt-repository -y ppa:openjdk-r/ppa
12RUN /install/install_deb_packages.sh --without_cmake
13RUN /install/install_cmake.sh
14
15# The following line installs the Python 3.7 cross-compilation toolchain.
16RUN /install/install_pi_python3x_toolchain.sh "3.7"
17
18RUN /install/install_bazel.sh
19RUN /install/install_proto3.sh
20RUN /install/install_buildifier.sh
21RUN /install/install_auditwheel.sh
22RUN /install/install_golang.sh
23
24# Set up the master bazelrc configuration file.
25COPY install/.bazelrc /etc/bazel.bazelrc
26
27# XLA is not needed for PI
28ENV TF_ENABLE_XLA=0
29