jincod / dotnetcore-buildpack

Heroku .NET Core Buildpack
MIT License
750 stars 360 forks source link

Reduce the slug size by more than 2 times #177

Closed kenteltest closed 2 years ago

kenteltest commented 2 years ago

Size reduction by 2 times by removing duplicate files (bin folder) Size reduction by about 30 mb by preventing copying .net runtime (it is not needed if the --self-contained option is used)

nbarbettini commented 2 years ago

I really like seeing these improvements! I've fought with slug size on projects that use this buildpack, and currently have my own fork which does some aggressive cleanup post-compile. I like this approach better.

kenteltest commented 2 years ago

@nbarbettini, thanks. I cleaned up the code and created a new pr