From a7ade2cbc4c2ccd9219478569caee60f69a1fed4 Mon Sep 17 00:00:00 2001 From: waja Date: Wed, 18 Dec 2024 13:32:50 +0100 Subject: [PATCH] fix: pin Imagick version to fix build error (#102) Related: #102, #103 --- 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 \