I'll build a Laravel 8 app. The PHP language level is PHP8. How can I integrate Swoole in my Dockerfile?
Actually I try it this way:
RUN pecl channel-update https://pecl.php.net/channel.xml \
&& pecl install swoole
But if I build the Dockerfile, it always runs into this error:
------
> [11/19] RUN pecl channel-update https://pecl.php.net/channel.xml && pecl install swoole:
#14 0.283 /bin/sh: 1: pecl: not found
------
failed to solve: rpc error: code = Unknown desc = executor failed running [/bin/sh -c pecl channel-update https://pecl.php.net/channel.xml && pecl install swoole]: exit code: 127
Does anyone has an idea? If you need more information about it, please let me know.
Regards, Manny
source https://stackoverflow.com/questions/68555357/how-to-install-swoole-in-a-dockerfile-for-laravel8-php8-project
Comments
Post a Comment