Skip to content

Commit

Permalink
Merge pull request #893 from uselagoon/php83_imagick_fix
Browse files Browse the repository at this point in the history
fix for imagick 3.7.0 build on arm64
  • Loading branch information
tobybellwood authored Dec 11, 2023
2 parents 43ecfb2 + 906bea9 commit 4aff69c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion images/php-fpm/8.3.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,21 @@ RUN apk update \
yaml-dev \
&& apk add --no-cache --virtual .phpize-deps $PHPIZE_DEPS \
&& yes '' | pecl install -f apcu-5.1.23 \
&& yes '' | pecl install -f imagick-3.7.0 \
# && yes '' | pecl install -f imagick-3.7.0 \ # fix for https://github.com/Imagick/imagick/pull/641
&& yes '' | pecl install -f redis-5.3.7 \
&& yes '' | pecl install -f xdebug-3.3.0 \
&& yes '' | pecl install -f yaml-2.2.3 \
# fix for https://github.com/Imagick/imagick/pull/641
&& cd /tmp \
&& yes '' | pecl download -Z imagick-3.7.0 \
&& tar -xf imagick-3.7.0.tar imagick-3.7.0/Imagick.stub.php \
&& sed -i '$ i\#endif' imagick-3.7.0/Imagick.stub.php \
&& tar -uvf imagick-3.7.0.tar imagick-3.7.0/Imagick.stub.php \
&& yes '' | pecl install -f /tmp/imagick-3.7.0.tar \
&& docker-php-ext-enable apcu imagick redis xdebug yaml \
&& rm -rf /tmp/imagick* \
&& rm -rf /tmp/pear \
&& cd - \
&& apk del -r \
.phpize-deps \
&& sed -i '1s/^/;Intentionally disabled. Enable via setting env variable XDEBUG_ENABLE to true\n;/' /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \
Expand Down

0 comments on commit 4aff69c

Please sign in to comment.