diff --git a/php-worker/Dockerfile b/php-worker/Dockerfile index 8620a593..ee6d1890 100644 --- a/php-worker/Dockerfile +++ b/php-worker/Dockerfile @@ -262,15 +262,16 @@ RUN if [ ${INSTALL_AUDIOWAVEFORM} = true ]; then \ ARG INSTALL_AMQP=false RUN if [ ${INSTALL_AMQP} = true ]; then \ + docker-php-ext-install sockets; \ apk --update add -q rabbitmq-c rabbitmq-c-dev && \ if [ $(php -r "echo PHP_MAJOR_VERSION;") = "8" ]; then \ - printf "\n" | pecl install amqp-1.11.0beta; \ + printf "\n" | pecl install amqp-1.11.0; \ else \ - printf "\n" | pecl install amqp; \ + printf "\n" | pecl install amqp; \ fi && \ - docker-php-ext-enable amqp && \ - apk del -q rabbitmq-c-dev && \ - docker-php-ext-install sockets \ + docker-php-ext-enable amqp && \ + apk del -q rabbitmq-c-dev; \ + php -m | grep -oiE '^amqp$' \ ;fi # Install Gearman: