Remove npu compiler, plugin and gpu plugin from cpu docker image#3935
Open
dkalinowski wants to merge 2 commits intomainfrom
Open
Remove npu compiler, plugin and gpu plugin from cpu docker image#3935dkalinowski wants to merge 2 commits intomainfrom
dkalinowski wants to merge 2 commits intomainfrom
Conversation
Contributor
There was a problem hiding this comment.
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
commented
Jan 30, 2026
| 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 \ |
Collaborator
Author
There was a problem hiding this comment.
it still increases final image size, we should do it other way
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🛠 Summary
CVS-180114
-150mb