• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1RUN apt-get update && apt-get install -y \
2    build-essential \
3    curl \
4    git \
5    openjdk-8-jdk \
6    ${PYTHON}-dev \
7    swig
8
9RUN ${PIP} --no-cache-dir install \
10    Pillow \
11    h5py \
12    keras_applications \
13    keras_preprocessing \
14    matplotlib \
15    mock \
16    numpy \
17    scipy \
18    sklearn \
19    pandas \
20    && test "${USE_PYTHON_3_NOT_2}" -eq 1 && true || ${PIP} --no-cache-dir install \
21    enum34
22
23 # Build and install bazel
24ENV BAZEL_VERSION 0.15.0
25WORKDIR /
26RUN mkdir /bazel && \
27    cd /bazel && \
28    curl -fSsL -O https://github.com/bazelbuild/bazel/releases/download/$BAZEL_VERSION/bazel-$BAZEL_VERSION-dist.zip && \
29    unzip bazel-$BAZEL_VERSION-dist.zip && \
30    bash ./compile.sh && \
31    cp output/bazel /usr/local/bin/ && \
32    rm -rf /bazel && \
33    cd -
34