Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions Dockerfile.ubuntu
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,13 @@ COPY --from=build /usr/local/lib/python3.*/dist-packages/jinja2 /ovms/python_dep
COPY --from=build /usr/local/lib/python3.*/dist-packages/jinja2-3.1.6.dist-info /ovms/python_deps/jinja2-3.1.6.dist-info
COPY --from=build /usr/local/lib/python3.*/dist-packages/markupsafe /ovms/python_deps/markupsafe

# For CPU images remove unused libraries
RUN if [ "$GPU" = "0" ]; then \
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it still increases final image size, we should do it other way

rm -f /ovms/lib/libopenvino_intel_npu_compiler.so \
/ovms/lib/libopenvino_intel_gpu_plugin.so \
/ovms/lib/libopenvino_intel_npu_plugin.so ; \
fi

# For image with Python enabled install Python library
RUN if ! [[ $debug_bazel_flags == *"py_off"* ]]; then true ; else exit 0 ; fi ; \
apt-get update -y ; \
Expand Down