Dotnet publish includes 4 large librdkafka.so files

I’m running dotnet8 aspnet docker images, and when I run dotnet publish before creating my image, there are 4 librdkafka.so files (centos6-* centos7-* alpine-*) that are all over 8 MB and account for 1/2 the size of my image. Are all 4 of these needed? Is there a a way to only include the correct one when publishing. I’m simply referencing Confluent.Kafka 2.3 nuget package.

1 Like

Hi am facing exaxtly the same issue. Any update on this?