File tree Expand file tree Collapse file tree 1 file changed +17
-3
lines changed Expand file tree Collapse file tree 1 file changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -38,9 +38,23 @@ RUN phpModules=" \
38
38
" \
39
39
&& docker-php-ext-install $phpModules
40
40
41
- RUN pecl install igbinary \
42
- && pecl install imagick \
43
- && docker-php-ext-enable imagick
41
+ RUN pecl install igbinary
42
+ # && pecl install imagick \
43
+ # && docker-php-ext-enable imagick
44
+ ARG IMAGICK_VERSION=3.7.0
45
+
46
+ # Imagick is installed from the archive because regular installation fails
47
+ # See: https://github.com/Imagick/imagick/issues/643#issuecomment-1834361716
48
+ RUN curl -L -o /tmp/imagick.tar.gz https://github.com/Imagick/imagick/archive/refs/tags/${IMAGICK_VERSION}.tar.gz \
49
+ && tar --strip-components=1 -xf /tmp/imagick.tar.gz \
50
+ && phpize \
51
+ && ./configure \
52
+ && make \
53
+ && make install \
54
+ && echo "extension=imagick.so" > /usr/local/etc/php/conf.d/ext-imagick.ini \
55
+ && rm -rf /tmp/*
56
+ # <<< End of Imagick installation
57
+ RUN docker-php-ext-enable imagick
44
58
45
59
# Install testing tools
46
60
RUN composer global require phpunit/phpunit
You can’t perform that action at this time.
0 commit comments