Minimal PHP Docker image with Swoole. It is intended for kool.dev, but can fit other PHP use cases.
This image is based on kooldev/php, please refer to that repo README for further documentation.
Images support linux/amd64 and linux/arm64. NGINX variants use Python Supervisor to run NGINX and Laravel Octane. Dockerize is inherited from the base image.
Debian variants use the base image's gosu for user switching. Development variants include Node 24 LTS and Yarn for Octane's --watch mode; production variants omit them. Use tags with the kooldev/php: prefix.
- 8.5 and 8.5-prod
- 8.5-nginx and 8.5-nginx-prod
- Debian:
8.5-debian-swoole,8.5-debian-swoole-prod,8.5-debian-swoole-nginx,8.5-debian-swoole-nginx-prod
- 8.4 and 8.4-prod
- 8.4-nginx and 8.4-nginx-prod
- Debian:
8.4-debian-swoole,8.4-debian-swoole-prod,8.4-debian-swoole-nginx,8.4-debian-swoole-nginx-prod
- 8.3 and 8.3-prod
- 8.3-nginx and 8.3-nginx-prod
- 8.2 and 8.2-prod
- 8.2-nginx and 8.2-nginx-prod
PHP 8.1 images are no longer built or maintained. Use PHP 8.2 or newer.
Please refer to kooldev/php.
Please refer to kooldev/php.
Please refer to kooldev/php.
Dockerfiles and configuration files are generated from fwd-template.json and the template folder. Make changes to these source files rather than the generated files.
After any changes, we need to run kool run template to parse the templates and generate folder/files for each version.
The MIT License (MIT).