A lightweight Alpine Docker image for running, testing, and deploying PHP in CI/CD pipelines.
2.2K
A lightweight, Alpine-based Docker image tailored for running, testing, and deploying PHP applications in CI/CD pipelines.
php:alpine)composer and PIE (pie.phar) for PHP extension managementpdo_mysql), PostgreSQL (pdo_pgsql, libpq), and Microsoft SQL Server (sqlsrv, pdo_sqlsrv, msodbcsql18)imagick)bash, openssh-client, and rsync for SSH/sync deployment workflows| Extension | Purpose | Installation Method |
|---|---|---|
bcmath | Arbitrary-precision math | Core |
bz2 | Bzip2 compression | Core |
exif | Image metadata parsing | Core |
gd | Image processing (FreeType, JPEG, WebP) | Core |
gmp | Large integer math / cryptography | Core |
intl | Unicode and internationalization | Core |
pdo_mysql | MySQL/MariaDB driver | Core |
pdo_pgsql | PostgreSQL driver | Core |
zip | ZIP archive handling | Core |
microsoft/sqlsrv | SQL Server native API driver | PIE |
microsoft/pdo_sqlsrv | SQL Server PDO driver | PIE |
imagick/imagick | ImageMagick wrapper | PIE |
To build the image locally:
docker build -t docker-php-deployer:latest .
docker run --rm -it -v $(pwd):/var/www docker-php-deployer:latest bash
docker run --rm docker-php-deployer:latest php -m
docker run --rm docker-php-deployer:latest odbcinst -q -d
For branching rules, release tagging procedures, and publishing workflows, refer to .github/CONTRIBUTING.md.
Content type
Image
Digest
sha256:b5c10cd24…
Size
67.5 MB
Last updated
2 days ago
docker pull idecardo/docker-php-deployer