0

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

riom
  • 61
  • 2
  • Can you try `docker-php-ext-install imagick` in stead of `pecl install imagick;` ? – Techno Jan 09 '23 at 14:46
  • 1
    @Techno: Thanks, I just had to add this line php8.2-imagick in Dockerfile and the issue was that I forgot to point to the published Dockerfile... :D – riom Jan 10 '23 at 19:08

1 Answers1

0

Solved. I forgot to point to the published Dockerfile in docker-composer.yml. :/

riom
  • 61
  • 2