From 9a3ae4b24cd19a58b4b37eedbf2c4f6799de50e5 Mon Sep 17 00:00:00 2001 From: Jan Wagner Date: Fri, 13 Dec 2024 17:06:45 +0100 Subject: [PATCH] Using Imagick from imagick/imagick@28f27044e435a2b203e32675e942eb8de620ee58 Closes #102 Using derifed fix from https://github.com/Imagick/imagick/issues/640#issuecomment-2470204174 --- Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 1acfacb..ee1987c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,6 +22,8 @@ FROM docker.io/library/php:${PHP_VERSION}-fpm-alpine${ALPINE_VERSION} as base ARG SNUFFLEUPAGUS_VERSION +ENV IMAGICK_SHA 28f27044e435a2b203e32675e942eb8de620ee58 + RUN apk -U upgrade \ && apk add -t build-deps \ $PHPIZE_DEPS \ @@ -72,7 +74,8 @@ RUN apk -U upgrade \ && pecl install smbclient \ && pecl install APCu \ && pecl install redis \ - && pecl install imagick \ + && curl -L -o /tmp/imagick.tar.gz https://github.com/Imagick/imagick/archive/${IMAGICK_SHA}.tar.gz && tar --strip-components=1 -xf /tmp/imagick.tar.gz && phpize && ./configure && make && make install \ + && apk add --no-cache --virtual .imagick-runtime-deps imagemagick \ && docker-php-ext-enable \ smbclient \ redis \