stackinstance/docker-centos
stackinstance/docker-centos provides a Dockerized CentOS environment for StackInstance projects, offering PHP teams a reproducible, ready-to-use container setup with simplified configuration, consistent runtime behavior, and smoother local development or deployment workflows. It helps standardize te...
Framing first: this is not a Laravel/PHP library. It is a Docker base image (a CentOS-derived container definition) that happens to be distributed through a PHP package index. It contributes no application code, no service provider, no config, and no Composer runtime dependency. Treating it as a "dependency" in a PHP project is a category error, and any decision it informs is an infrastructure decision, not a product/feature decision.
What it can legitimately inform:
php:8.x-fpm-*, debian-slim, alpine, or rockylinux/almalinux for RHEL-compatible needs.composer.json or a PHP SBOM.Bottom line for planning: this supports a negative or defer decision and a policy decision, not a feature decision.
Consider it only under a narrow, conjunctive set of conditions:
Look elsewhere — decisively — if any of the following hold:
php images (Debian- or Alpine-based) with a maintained tag and digest pin, or a distroless/slim variant. This is the default answer for the overwhelming majority of Laravel deployments.Migration cost if you adopt and later abandon is low (swap a FROM line), but the audit and re-baseline cost is not, so the threshold to start should be high.
To executives (one paragraph): We evaluated an open-source CentOS container base published as a PHP package. It has no maintainers, no users, no release history, and is built on an operating system line that stopped receiving security patches in 2024. It delivers no product capability and carries real supply-chain and compliance risk. Recommendation: do not adopt. We standardize on the official, actively maintained PHP base images, pin them by digest, and keep them under our own patch cadence. No roadmap impact, no spend, no migration work — this is a "no" that costs us nothing.
To engineering: This isn't a library — it's a Dockerfile. There's nothing to composer require and nothing to get bug fixes from. If anyone specifically needs CentOS-lineage parity, we fork the Dockerfile into our own repo, pin by digest, own the rebuild/patch loop, run Trivy/Grype in CI, and never list it as an application dependency. For everything else, use php:<version>-fpm / -cli on Debian slim, pin digests, and add a scheduled base-image refresh. If a team is currently sourcing a base image from the PHP package index, flag it — that's a gap in our dependency policy, and I'd like it closed rather than worked around.
How can I help you explore Laravel packages today?