From e0b4753db45fbc21de2f1e36743dc7ac25488f85 Mon Sep 17 00:00:00 2001 From: Chris Date: Tue, 23 Feb 2021 17:20:37 +0100 Subject: [PATCH] install imagemagick from git --- webservice/Dockerfile | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/webservice/Dockerfile b/webservice/Dockerfile index 91149a5..5840313 100644 --- a/webservice/Dockerfile +++ b/webservice/Dockerfile @@ -62,9 +62,20 @@ RUN \ CFLAGS="-I/usr/src/php" docker-php-ext-install xmlreader RUN \ - pecl install -o -f apcu imagick-beta && \ + pecl install -o -f apcu && \ rm -rf /tmp/pear && \ - docker-php-ext-enable apcu imagick + docker-php-ext-enable apcu + +# compile imagick from master branch as there isn't any release for php8 yet. +ENV IMAGICK_SHA 448c1cd0d58ba2838b9b6dff71c9b7e70a401b90 +RUN \ + 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 &&\ + docker-php-ext-enable imagick # Activate user-defined .htaccess RUN \