mirror of
https://github.com/tensorflow/haskell.git
synced 2024-11-26 21:09: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:
parent
d050ec2654
commit
081902db3e
2 changed files with 4 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue