791 B
791 B
🐘 multi-php-fpm (Debian + Sury)
Docker image to install and run multiple PHP versions from the Sury Debian repository on Debian.
- Default PHP installed at build: 8.2 (
BUILDTIME_PHP_VER_INST="8.2") - Supports installing multiple PHP versions at container start (
PHP_VERSIONS="7.1 7.4 8.1") - Automatically starts all installed PHP-FPM services
- Uses
update-alternativesto set default CLI interpreter (DEF_PHP_INTERPRETER="8.2")
Usage
Run the image:
docker run -it --rm \
-e PHP_VERSIONS="7.4 8.1" \
-e DEF_PHP_INTERPRETER="8.1" \
eroncero/multi-php-fpm:latest