dotnet-core-buildpack icon indicating copy to clipboard operation
dotnet-core-buildpack copied to clipboard

Avoid installing SDK on container

Open Tandis5 opened this issue 3 years ago • 2 comments

With the upgrade to .NET 6, the SDK installation is taking up a lot more space. We are having to add space to our containers, and that is space that really isn't needed. Would it be possible to get a buildpack that only installs the runtime and not the SDK? We always deploy the published app so we don't need the SDK taking up space.

Tandis5 avatar Jun 10 '22 14:06 Tandis5

If this issue is tackled, I recommend this be an option rather than the default behavior. There are existing demos that rely on the presence of SDK in a container to work properly.

I recommend exposing a way to instruct buildpack to compile for self-contained mode. This way only assemblies used by the app will be included further reducing size. This way the container doesn't need to have dotnet dependency at all.

macsux avatar Jun 14 '22 03:06 macsux

Just to be clear... our apps are not being built self-contained. And they aren't being built at all by the buildpack. Our apps are built/published prior to being pushed to PCF. We just need the .NET runtime to run them.

Tandis5 avatar Jun 14 '22 18:06 Tandis5