I am trying to install Imagick PHP Extension in Laravel Sail but I am failing to do so.
Details: Laravel 9 PHP 8.2
In the Dockerfile (in directory docker/8.2) I added this snippet to the script:
RUN apt-get update; \ # Imagick extension apt-get install -y libmagickwand-dev; \ pecl install imagick; \ docker-php-ext-enable imagick; \ # Success true
Did run sail build and it runs the script without errors but it does not detect Imagick
Solved. I forgot to point to the published Dockerfile in docker-composer.yml. :/
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.