heroku / base-images

Recipes for building the base images for Heroku's stacks
BSD 3-Clause "New" or "Revised" License
267 stars 78 forks source link

Heroku-24: Remove unnecessary headers from build image #296

Closed edmorley closed 6 months ago

edmorley commented 7 months ago

A number of development packages currently being installed in the build image are actually for use-case that either do not make sense in a container context, or are not used during buildpack execution (ie: aren't needed by either the buildpack directly, or when the apps's dependencies are installed/built).

Many of these packages have been simply been copy-pasted from one new stack to the next, even though they are not actually needed in the image.

As such, the following have been removed from the build image:

Note: For use-cases like compiling Python/Ruby/PHP binaries for upload to S3, any required headers (such as libreadline-dev) that aren't also needed for application dependencies should instead be installed in the image being used to compile those binaries, rather than being included in the build image here (example).

Towards #266. GUS-W-15159536.