• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1RUN yum update -y && \
2    yum install -y \
3        curl \
4        freetype-devel \
5        gcc \
6        gcc-c++ \
7        git \
8        hdf5-devel \
9        java-1.8.0-openjdk \
10        java-1.8.0-openjdk-devel \
11        java-1.8.0-openjdk-headless \
12        libcurl-devel \
13        make \
14        pkg-config \
15        rsync \
16        sudo \
17        unzip \
18        zeromq-devel \
19        zip \
20        zlib-devel && \
21        yum clean all
22
23ENV CI_BUILD_PYTHON python
24
25# CACHE_STOP is used to rerun future commands, otherwise cloning tensorflow will be cached and will not pull the most recent version
26ARG CACHE_STOP=1
27# Check out TensorFlow source code if --build-arg CHECKOUT_TF_SRC=1
28ARG CHECKOUT_TF_SRC=0
29ARG TF_BRANCH=master
30RUN test "${CHECKOUT_TF_SRC}" -eq 1 && git clone https://github.com/tensorflow/tensorflow.git --branch "${TF_BRANCH}" --single-branch /tensorflow_src || true
31