A docker image, based on the offical PHP:8.0 images, that adds the fiber extension (RFC)
docker pull sarkedev/php-fiber
Use php-fiber:cli
, php-fiber:zts
, php-fiber:apache
, or php-fiber:fpm
tags as required. No tag (or latest
) is the default based on fpm
and alpine, since it is much smaller.
To run use the following command in your project root:
docker run --rm -v `pwd`:`pwd` -w `pwd` sarkedev/php-fiber php yourphpfile.php
Images are also tagged with specific versions, such as:
sarkedev/php-fiber:8.0.2-cli_fiber-2094c81
This would be based on the offical php:8.0.2-cli
image, and building ext-fiber @ 2094c81 (the commit before FiberScheduler
was dropped).