Sign inSign up

webo3/php

By webo3

Updated 3 months ago

Use in CI build. Include nodejs, awscli, rsync, bash and few php modules

Image
2

10K+

webo3/php repository overview

PHP Docker Images for CI/CD

Docker Hub: webo3/php

CI-ready PHP environments in Debian (default) and Alpine variants with Composer, common extensions, and system tools pre-installed.

Quick Start

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

Tag Convention

PatternExampleDescription
<php>8.4, 8.3, 7.4Debian PHP only
<php>-alpine8.4-alpineAlpine PHP only
<php>-node<node>8.4-node24Debian PHP + Node
<php>-node<node>-alpine8.4-node24-alpineAlpine 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)

What's Included

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

CI/CD Example

# GitLab CI / GitHub Actions / Bitbucket
test:
  image: webo3/php:8.4-node24
  script:
    - composer install
    - npm ci && npm run build
    - php vendor/bin/phpunit

Extending

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.

Image Details

DebianAlpine
Basewebo3/debian-basewebo3/alpine-base
Compressed Size (PHP only)~250-300MB~120-150MB
Compressed Size (PHP+Node)~320-400MB~200-250MB
Platformslinux/amd64, linux/arm64linux/amd64, linux/arm64

Tag summary

Content type

Image

Digest

sha256:7183a00c2

Size

324.5 MB

Last updated

3 months ago

docker pull webo3/php:8.5-node24-bookworm