1
0
Fork 0
mirror of https://github.com/tensorflow/haskell.git synced 2024-11-23 03:19:44 +01:00

Running ldconfig to make libtensorflow_c visible.

Added it to both ci_build and stack images. It wasn't necessary in the
former for some reason.
This commit is contained in:
Greg Steuck 2016-10-28 14:27:51 -07:00
parent d050ec2654
commit 081902db3e
2 changed files with 4 additions and 3 deletions

View file

@ -27,10 +27,10 @@ WORKDIR /tfhs
RUN \
cd third_party/tensorflow && \
tensorflow/tools/ci_build/builds/configured CPU && \
bazel --batch build -c opt '@protobuf//:protoc' && \
bazel build -c opt '@protobuf//:protoc' && \
install -s bazel-bin/external/protobuf/protoc /usr/local/bin && \
bazel --batch build -c opt '//tensorflow:libtensorflow_c.so' && \
bazel build -c opt '//tensorflow:libtensorflow_c.so' && \
install bazel-bin/tensorflow/libtensorflow_c.so /usr/local/lib && \
bazel --batch clean
ldconfig
RUN stack setup && stack test --only-dependencies

View file

@ -9,6 +9,7 @@ RUN \
install -s bazel-bin/external/protobuf/protoc /usr/local/bin && \
bazel --batch build -c opt '//tensorflow:libtensorflow_c.so' && \
install bazel-bin/tensorflow/libtensorflow_c.so /usr/local/lib && \
ldconfig && \
bazel --batch clean
RUN apt-get update