1
0
mirror of https://github.com/tensorflow/haskell.git synced 2024-06-02 11:03:34 +02:00

Reduce memory usage for docker build.

This commit is contained in:
Alexander Kjeldaas 2016-12-24 00:18:13 +01:00
parent db75350969
commit 1e5944e7bc

View File

@ -5,9 +5,9 @@ MAINTAINER TensorFlow authors <tensorflow-haskell@googlegroups.com>
# Installs protoc and the libraries.
RUN \
cd /tensorflow && \
bazel --batch build -c opt '@protobuf//:protoc' && \
bazel --batch build --jobs=7 -c opt '@protobuf//:protoc' && \
install -s bazel-bin/external/protobuf/protoc /usr/local/bin && \
bazel --batch build -c opt '//tensorflow:libtensorflow_c.so' && \
bazel --batch build --jobs=7 -c opt '//tensorflow:libtensorflow_c.so' && \
install bazel-bin/tensorflow/libtensorflow_c.so /usr/local/lib && \
ldconfig && \
bazel --batch clean