Use in CI build. Include nodejs, awscli, rsync, bash and few php modules
10K+
Docker Hub: webo3/php
CI-ready PHP environments in Debian (default) and Alpine variants with Composer, common extensions, and system tools pre-installed.
docker pull webo3/php:8.4 # Latest PHP (Debian)
docker pull webo3/php:8.4-node24 # PHP + Node.js
docker pull webo3/php:8.4-alpine # Alpine variant
| Pattern | Example | Description |
|---|---|---|
<php> | 8.4, 8.3, 7.4 | Debian PHP only |
<php>-alpine | 8.4-alpine | Alpine PHP only |
<php>-node<node> | 8.4-node24 | Debian PHP + Node |
<php>-node<node>-alpine | 8.4-node24-alpine | Alpine PHP + Node |
latest | - | Latest stable PHP (Debian) |
Available PHP versions: 8.4, 8.3, 8.2, 8.1, 8.0, 7.4, 7.3, 7.2, 7.1, 7.0, 5.6
Available Node versions: 24, 22, 20, 18 (varies by PHP version)
PHP-FPM: All images include PHP-FPM (FastCGI Process Manager) built-in.
PHP Extensions: mbstring, pdo_mysql, curl, intl, gd, xml, zip, bz2, opcache, exif, gmp, bcmath, soap, pcntl, redis, apcu, igbinary, memcached, imagick, xdebug
Extensions are installed using mlocati/docker-php-extension-installer, which is pre-installed in all images.
Xdebug is installed but disabled by default (XDEBUG_MODE=off) so tests and CI stay fast. Enable it per command when needed:
# Code coverage
XDEBUG_MODE=coverage php artisan test --coverage
# Step debugging
XDEBUG_MODE=debug php artisan serve
Tools: Composer 2, mysql-client, git, rsync, aws-cli, openssh, curl, wget
Node images also include: node, npm, yarn
# GitLab CI / GitHub Actions / Bitbucket
test:
image: webo3/php:8.4-node24
script:
- composer install
- npm ci && npm run build
- php vendor/bin/phpunit
Add extensions easily with the pre-installed install-php-extensions tool (works on both Debian and Alpine):
FROM webo3/php:8.4
# Add extensions (handles dependencies automatically)
RUN install-php-extensions mongodb opcache-jit
See supported extensions for the full list.
| Debian | Alpine | |
|---|---|---|
| Base | webo3/debian-base | webo3/alpine-base |
| Compressed Size (PHP only) | ~250-300MB | ~120-150MB |
| Compressed Size (PHP+Node) | ~320-400MB | ~200-250MB |
| Platforms | linux/amd64, linux/arm64 | linux/amd64, linux/arm64 |
Content type
Image
Digest
sha256:7183a00c2…
Size
324.5 MB
Last updated
3 months ago
docker pull webo3/php:8.5-node24-bookworm