Sign inSign up

idecardo/docker-php-deployer

By idecardo

•Updated 2 days ago

A lightweight Alpine Docker image for running, testing, and deploying PHP in CI/CD pipelines.

Image
0

2.2K

idecardo/docker-php-deployer repository overview

⁠Docker PHP Deployer

A lightweight, Alpine-based Docker image tailored for running, testing, and deploying PHP applications in CI/CD pipelines.

⁠Features

  • Base OS: Alpine Linux (php:alpine)
  • Package Management: Pre-installed composer and PIE (pie.phar) for PHP extension management
  • Database Drivers: MySQL (pdo_mysql), PostgreSQL (pdo_pgsql, libpq), and Microsoft SQL Server (sqlsrv, pdo_sqlsrv, msodbcsql18)
  • Image Processing: GD (with FreeType, JPEG, and WebP support) and ImageMagick (imagick)
  • Deployment Utilities: bash, openssh-client, and rsync for SSH/sync deployment workflows

⁠Included Extensions

ExtensionPurposeInstallation Method
bcmathArbitrary-precision mathCore
bz2Bzip2 compressionCore
exifImage metadata parsingCore
gdImage processing (FreeType, JPEG, WebP)Core
gmpLarge integer math / cryptographyCore
intlUnicode and internationalizationCore
pdo_mysqlMySQL/MariaDB driverCore
pdo_pgsqlPostgreSQL driverCore
zipZIP archive handlingCore
microsoft/sqlsrvSQL Server native API driverPIE
microsoft/pdo_sqlsrvSQL Server PDO driverPIE
imagick/imagickImageMagick wrapperPIE

⁠Building Locally

To build the image locally:

docker build -t docker-php-deployer:latest .

⁠Quick Start & Verification

⁠Run Shell
docker run --rm -it -v $(pwd):/var/www docker-php-deployer:latest bash
⁠Verify Installed Extensions
docker run --rm docker-php-deployer:latest php -m
⁠Verify SQL Server Driver Setup
docker run --rm docker-php-deployer:latest odbcinst -q -d

⁠Contributing & Releases

For branching rules, release tagging procedures, and publishing workflows, refer to .github/CONTRIBUTING.md⁠.

Tag summary

Content type

Image

Digest

sha256:b5c10cd24…

Size

67.5 MB

Last updated

2 days ago

docker pull idecardo/docker-php-deployer