RUN apt-get update && apt-get install -y \ build-essential \ curl \ git \ openjdk-8-jdk \ ${PYTHON}-dev \ swig RUN ${PIP} --no-cache-dir install \ Pillow \ h5py \ keras_applications \ keras_preprocessing \ matplotlib \ mock \ numpy \ scipy \ sklearn \ pandas \ && test "${USE_PYTHON_3_NOT_2}" -eq 1 && true || ${PIP} --no-cache-dir install \ enum34 # Build and install bazel ENV BAZEL_VERSION 0.15.0 WORKDIR / RUN mkdir /bazel && \ cd /bazel && \ curl -fSsL -O https://github.com/bazelbuild/bazel/releases/download/$BAZEL_VERSION/bazel-$BAZEL_VERSION-dist.zip && \ unzip bazel-$BAZEL_VERSION-dist.zip && \ bash ./compile.sh && \ cp output/bazel /usr/local/bin/ && \ rm -rf /bazel && \ cd -