Fix file not found error during docker build. (#2569)

This commit is contained in:
Mark 2019-12-08 00:49:47 +08:00 committed by Changming Sun
parent 5575766a53
commit 79847f39b3
3 changed files with 3 additions and 3 deletions

View file

@ -34,7 +34,7 @@ FROM ubuntu:16.04 AS minimal
WORKDIR /onnxruntime/server/
COPY --from=build /onnxruntime/build/Release/onnxruntime_server /onnxruntime/server/
COPY --from=build /onnxruntime/build/Release/libonnxruntime.so.* /lib/
COPY --from=build /onnxruntime/build/Release/mkl-dnn/install/lib/libdnnl.so* /lib/
COPY --from=build /onnxruntime/build/Release/dnnl/install/lib/libdnnl.so* /lib/
RUN apt-get update && apt-get install -y libgomp1
ENTRYPOINT ["/onnxruntime/server/onnxruntime_server"]

View file

@ -36,7 +36,7 @@ WORKDIR /onnxruntime/server/
RUN apt-get update && apt-get install -y libgomp1
COPY --from=build /onnxruntime/build/Release/onnxruntime_server /onnxruntime/server/
COPY --from=build /onnxruntime/build/Release/libonnxruntime.so.* /lib/
COPY --from=build /onnxruntime/build/Release/mkl-dnn/install/lib/libdnnl.so* /lib/
COPY --from=build /onnxruntime/build/Release/dnnl/install/lib/libdnnl.so* /lib/
COPY --from=build /onnxruntime/build/Release/mklml/src/project_mklml/lib/*.so* /lib/
ENTRYPOINT ["/onnxruntime/server/onnxruntime_server"]

View file

@ -6,7 +6,7 @@
FROM ubuntu:16.04 as build
ARG PYTHON_VERSION=3.5
ARG ONNXRUNTIME_REPO=https://github.com/zhijxu-MS/onnxruntime
ARG ONNXRUNTIME_REPO=https://github.com/Microsoft/onnxruntime
ARG ONNXRUNTIME_SERVER_BRANCH=master
ENV DEBIAN_FRONTEND noninteractive