[Normal build for Python 3.7] $ PYTHON=python3.7 tensorflow/lite/tools/pip_package/build_pip_package_with_cmake.sh [armhf cross build for Python 3.7] $ tensorflow/tools/ci_build/ci_build.sh PI-PYTHON37 tensorflow/lite/tools/pip_package/build_pip_package_with_cmake.sh armhf - lite/tools/cmake/download_toolchains.sh is added to download ARM toolchains - tools/ci_build/Dockerfile.pi* are updated to use cmake 3.16.8 PiperOrigin-RevId: 356621208 Change-Id: I7f1cb0c8389b5a5e637036b52b33e5da0afa2b77
30 lines
935 B
Docker
30 lines
935 B
Docker
FROM ubuntu:16.04
|
|
|
|
LABEL maintainer="Terry Heo <terryheo@google.com>"
|
|
|
|
ENV CI_BUILD_PYTHON=python3
|
|
ENV CROSSTOOL_PYTHON_INCLUDE_PATH=/usr/include/python3.5
|
|
|
|
# Copy and run the install scripts.
|
|
COPY install/*.sh /install/
|
|
RUN /install/install_bootstrap_deb_packages.sh
|
|
RUN add-apt-repository -y ppa:openjdk-r/ppa
|
|
RUN /install/install_deb_packages.sh --without_cmake
|
|
RUN /install/install_cmake.sh
|
|
RUN /install/install_pip_packages.sh
|
|
RUN /install/install_bazel.sh
|
|
RUN /install/install_proto3.sh
|
|
RUN /install/install_buildifier.sh
|
|
RUN /install/install_auditwheel.sh
|
|
RUN /install/install_golang.sh
|
|
|
|
# The following line installs the Python cross-compilation toolchain. All the
|
|
# preceding dependencies should be kept in sync with the main CPU docker file.
|
|
RUN /install/install_pi_python3_toolchain.sh
|
|
|
|
# Set up the master bazelrc configuration file.
|
|
COPY install/.bazelrc /etc/bazel.bazelrc
|
|
|
|
# XLA is not needed for PI
|
|
ENV TF_ENABLE_XLA=0
|