24 lines
791 B
Markdown
24 lines
791 B
Markdown
# 🐘 multi-php-fpm (Debian + Sury)
|
|
|
|
[](https://hub.docker.com/r/eroncero/multi-php-fpm)
|
|
|
|
Docker image to install and run multiple PHP versions from the [Sury Debian repository](https://packages.sury.org/php/) 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-alternatives` to set default CLI interpreter (`DEF_PHP_INTERPRETER="8.2"`)
|
|
|
|
---
|
|
|
|
## Usage
|
|
|
|
Run the image:
|
|
|
|
```bash
|
|
docker run -it --rm \
|
|
-e PHP_VERSIONS="7.4 8.1" \
|
|
-e DEF_PHP_INTERPRETER="8.1" \
|
|
eroncero/multi-php-fpm:latest
|
|
|