blob: 462e43107d9db6e12cb0bd2634a30a539bb97f9c [file] [log] [blame]
RUN apt-get update && apt-get install -y \
build-essential \
curl \
git \
openjdk-8-jdk \
python3-dev \
virtualenv \
swig
RUN python3 -m pip --no-cache-dir install \
Pillow \
h5py \
keras_preprocessing \
matplotlib \
mock \
'numpy<1.19.0' \
scipy \
sklearn \
pandas \
portpicker \
enum34
# Build and install bazel
ENV BAZEL_VERSION 4.2.2
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 -