From d2ad0aec261331e761c9b2e47149e4cc029a7043 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ton=CC=83o=20de=20Pedro?= Date: Mon, 26 Aug 2024 13:38:48 +0200 Subject: [PATCH] Install Imagick from specific commit hash on worker PHP8.3 https://github.com/Imagick/imagick/issues/643 --- php-with-supervisor-for-workers/Dockerfile-8.3 | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/php-with-supervisor-for-workers/Dockerfile-8.3 b/php-with-supervisor-for-workers/Dockerfile-8.3 index 0cd930f..7409bbd 100644 --- a/php-with-supervisor-for-workers/Dockerfile-8.3 +++ b/php-with-supervisor-for-workers/Dockerfile-8.3 @@ -30,10 +30,9 @@ RUN docker-php-ext-install -j$(nproc) pdo_mysql mbstring opcache zip curl soap b RUN pecl install apcu igbinary \ && docker-php-ext-enable apcu igbinary -# imagemagick as PHP extension -RUN apt-get install -y libmagickwand-dev --no-install-recommends \ - && pecl install imagick \ - && echo "extension=imagick.so" > /usr/local/etc/php/conf.d/ext-imagick.ini +# Imagemagick as PHP extension +COPY --from=mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/local/bin/ +RUN install-php-extensions imagick/imagick@28f27044e435a2b203e32675e942eb8de620ee58 # Install ldap RUN \