dotnetcore-buildpack icon indicating copy to clipboard operation
dotnetcore-buildpack copied to clipboard

Self contained dotnet + delete SDK to reduce slug size

Open dstj opened this issue 5 years ago • 6 comments

Hi @jincod.

This is essentially a redo of PR #20, but improved a bit and base on the current master branch.

With it, I passed from a 304.9M slug (which causes Warning: Your slug size exceeds our soft limit (304 MB) which may affect boot time.) to a 149M slug size!

dstj avatar Sep 13 '18 16:09 dstj

This is useful, we have been running locally with this change for over a year to reduce container memory usage. This is inline with .NET Core 3.0 work of optimizing for running in limited memory containers.

WilliamWhispell avatar Oct 09 '19 20:10 WilliamWhispell

@jincod Any update here? This would also be very beneficial for us!

kiran94 avatar Oct 10 '19 09:10 kiran94

Hi there,

Could you please share more info about why do you need self-contained? Is it about slug size?

Here my current state image

jincod avatar Oct 10 '19 09:10 jincod

@jincod Yes, this is for the slug size

kiran94 avatar Oct 17 '19 11:10 kiran94

@jincod do you mind sharing the status on merging this PR? It has been idling for a year now, and I was wondering whether it is going to be merged at all, and whether you already fixed it in another way (as your screenshot indicates?) :)

@dstj @WilliamWhispell @kiran94 do you know anything? Or do you use another publicly available buildpack that has a fix for this already? :)

Zero3 avatar Nov 27 '20 16:11 Zero3

@Zero3 I always use my fork, which I'm rebasing on master every time I need the new .NET Core version.

dstj avatar Nov 27 '20 18:11 dstj