Skip to content

Conversation

@dkalinowski
Copy link
Collaborator

@dkalinowski dkalinowski commented Jan 29, 2026

🛠 Summary

CVS-180114
-150mb

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR reduces the Docker image size by approximately 100MB by removing unused GPU and NPU-related libraries from CPU-only Docker images.

Changes:

  • Added conditional cleanup step to remove GPU and NPU libraries when building CPU images

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@dkalinowski dkalinowski requested a review from dtrawins January 30, 2026 09:15
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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants