Copy shared library after build ORT Server (#1347)

This commit is contained in:
NonStatic 2019-07-07 20:21:16 -07:00 committed by jywu-msft
parent 2714576d0a
commit 9f9ff19bdc

View file

@ -31,6 +31,7 @@ FROM minimal AS final
WORKDIR /onnxruntime/server/
ENV MODEL_ABSOLUTE_PATH /onnxruntime/model/model.onnx
COPY --from=build /onnxruntime/build/Release/onnxruntime_server /onnxruntime/server/
COPY --from=build /onnxruntime/build/Release/libonnxruntime.so.* /lib/
RUN apt-get update \
&& apt-get install -y libgomp1
ENTRYPOINT /onnxruntime/server/onnxruntime_server --model_path $MODEL_ABSOLUTE_PATH