PHP hardened (distroless) images
That’s a good point, maybe I’ll change that at some point. The reason, haven’t done so yet is that I wanna have the whole supply chain under my control. And know exactly what has been changed since a release.
Why build your own images at all?
Because of two different reasons:
- Flexibility: I can modify a container to my needs.
- Trust: I don’t wanna rely on something that I don’t have under control. An image might contain some breaking changes in the next version, and that could cause me problems when I apply them.
surewhynotlem@lemmy.world 3 days ago
Trust. A LOT of docker images are just some person who decided to do it first. Hopefully php has an official one though.
lambalicious@lemmy.sdf.org 3 days ago
PHP does have a number of official ones, yes, but the way they are designed still makes it often more efficient to just download their Dockerfiles and use as a guide to make your own (I’ve had to do that in particular because of how difficult it is to install some specific PHP extensions on their Alpine image sets).