/docker-php

Dockerized php with php extension(s) 🐳

Primary LanguageDockerfileApache License 2.0Apache-2.0

docker-php

github-actions github-release docker-image-size

Dockerized php with php extension(s), based on official php images.

Tags

Tag Dockerfile Build Context
:8.3.11-fpm-alpine, :latest View
:8.3.11-fpm-alpine-opcache-mysqli-gd-pdo-memcached-sockets View
:8.3.11-fpm-alpine-opcache-mysqli-gd-pdo-memcached-sockets-xdebug View
:8.2.23-fpm-alpine View
:8.2.23-fpm-alpine-opcache-mysqli-gd-pdo-memcached-sockets View
:8.2.23-fpm-alpine-opcache-mysqli-gd-pdo-memcached-sockets-xdebug View
:8.1.29-fpm-alpine View
:8.1.29-fpm-alpine-opcache-mysqli-gd-pdo-memcached-sockets View
:8.1.29-fpm-alpine-opcache-mysqli-gd-pdo-memcached-sockets-xdebug View
:8.0.30-fpm-alpine View
:8.0.30-fpm-alpine-opcache-mysqli-gd-pdo-memcached-sockets View
:8.0.30-fpm-alpine-opcache-mysqli-gd-pdo-memcached-sockets-xdebug View
:7.4.33-fpm-alpine View
:7.4.33-fpm-alpine-opcache-mysqli-gd-pdo-memcached-sockets View
:7.4.33-fpm-alpine-opcache-mysqli-gd-pdo-memcached-sockets-xdebug View
:7.3.33-fpm-alpine View
:7.3.33-fpm-alpine-opcache-mysqli-gd-pdo-memcached-sockets View
:7.3.33-fpm-alpine-opcache-mysqli-gd-pdo-memcached-sockets-xdebug View
:7.2.34-fpm-alpine View
:7.2.34-fpm-alpine-opcache-mysqli-gd-pdo-memcached-sockets View
:7.2.34-fpm-alpine-opcache-mysqli-gd-pdo-memcached-sockets-xdebug View

Development

Requires Windows powershell or pwsh.

# Install Generate-DockerImageVariants module: https://github.com/theohbrothers/Generate-DockerImageVariants
Install-Module -Name Generate-DockerImageVariants -Repository PSGallery -Scope CurrentUser -Force -Verbose

# Edit ./generate templates

# Generate the variants
Generate-DockerImageVariants .

Variant versions

versions.json contains a list of Semver versions, one per line.

To update versions in versions.json:

./Update-Versions.ps1

To update versions in versions.json, and open a PR for each changed version, and merge successful PRs one after another (to prevent merge conflicts), and finally create a tagged release and close milestone:

$env:GITHUB_TOKEN = 'xxx'
./Update-Versions.ps1 -PR -AutoMergeQueue -AutoRelease

To perform a dry run, use -WhatIf.