-
Notifications
You must be signed in to change notification settings - Fork 115
Description
There are a ton of binaries that get installed into the /opt/llvm directory in the crossdeps-builder images, adding up to about 4 GB. This then gets passed on to the crossdeps-llvm image which copies the contents of that directory into its own image:
dotnet-buildtools-prereqs-docker/src/azurelinux/3.0/net10.0/crossdeps-llvm/amd64/Dockerfile
Line 8 in ef1b7e8
| COPY --from=builder /opt/llvm /usr/local |
And then there are a bunch of cross images based on crossdeps-llvm. So you're left with a bunch of images that, when loaded, take up a lot of disk space. This is problematic for the SBOM generation of the build because it has to load each one of these images and scan them. This is very costly: #1435.
There should be an investigation to determine which of the files in the /opt/llvm directory are actually required and delete everything else.
/cc @sbomer