Run ldconfig

This commit is contained in:
MTRNord 2022-10-10 21:38:25 +02:00
parent 3341284960
commit 7aefb5f414
1 changed files with 2 additions and 1 deletions

View File

@ -7,10 +7,11 @@ COPY ./Cargo.lock /app
RUN cargo build --release
RUN ls -la target/release/build/tensorflow-sys-*/out
RUN find / -name libtensorflow*
RUN ldd /app/target/release/model_server
RUN find . -type f -name libtensorflow.so.2 -exec cp {} /usr/lib/ \; \
&& find . -type f -name libtensorflow_framework.so.2 -exec cp {} /usr/lib/ \;
RUN ldconfig
RUN ldd /app/target/release/model_server
ENV MODEL_PATH /app/models/matrix_spam
# Copy the model files to the image