docker-php-extension-installer Docker & Self-Hosted Deployment

GitHub

Easily install PHP extensions in Docker containers

4,979 stars Shell Shell 1 file ยท ~3,970 tokens #docker#extension#install#php
1. Pull Image (DOCKERHUB) docker pull mlocati/docker-php-extension-installer:latest
2. Docker Run (1-Click Launch) docker run -d --name docker-php-extension-installer --restart always mlocati/docker-php-extension-installer:latest
3. Podman Run podman run -d --name docker-php-extension-installer --restart always mlocati/docker-php-extension-installer:latest
4. Skopeo Inspect (Zero-Pull Manifest) skopeo inspect docker://docker.io/mlocati/docker-php-extension-installer:latest
5. ORAS Pull (OCI Artifact) oras pull mlocati/docker-php-extension-installer:latest
Dockerfile
FROM scratch

LABEL org.opencontainers.image.source="https://github.com/mlocati/docker-php-extension-installer"
LABEL org.opencontainers.image.licenses="MIT"

COPY --chmod=755 install-php-extensions /usr/bin/install-php-extensions