build: Remove static libraries, headers, and documentation from ROCm installation.

This commit is contained in:
Donato Capitella
2025-11-30 09:06:55 +00:00
parent aab95c2149
commit 5dfbe9f52e
+5
View File
@@ -74,6 +74,11 @@ RUN cmake -S . -B build \
&& cmake --build build --config Release -- -j$(nproc) \
&& cmake --install build --config Release
# keep bin; drop headers/docs/static libs (retain llama.cpp for rpc binaries)
RUN find /opt/rocm-7.0 -type f -name '*.a' -delete \
&& rm -rf /opt/rocm-7.0/include /opt/rocm-7.0/share \
/opt/rocm-7.0/llvm/include /opt/rocm-7.0/llvm/share
# runtime
FROM registry.fedoraproject.org/fedora-minimal:43