try to make imagick work

Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
Simon L 2022-12-29 12:31:59 +01:00
parent a2cfa17b05
commit 810094daa3
2 changed files with 21 additions and 1 deletions

View file

@ -200,6 +200,8 @@ RUN set -ex; \
grep \
coreutils \
gcompat \
libjpeg \
librsvg \
; \
rm -rf /var/lib/apt/lists/*

View file

@ -60,7 +60,25 @@ if [ -n "$ADDITIONAL_PHP_EXTENSIONS" ]; then
# shellcheck disable=SC2086
if [ "$PHP_DEPS_ARE_INSTALLED" != 1 ]; then
echo "Installing PHP build dependencies..."
if ! apk add --no-cache --virtual .build-deps libxml2-dev libwebp-dev gmp-dev libpng-dev libjpeg-turbo-dev libheif-dev freetype-dev fontconfig-dev imagemagick-dev autoconf $PHPIZE_DEPS >/dev/null; then
if ! apk add --no-cache --virtual .build-deps \
lcms2-dev \
libheif-dev \
librsvg-dev \
libxext-dev \
libxml2-dev \
lcms2-dev \
fontconfig-dev \
freetype-dev \
ghostscript-dev \
lcms2-dev \
libjpeg-turbo-dev \
libpng-dev \
libtool \
tiff-dev \
zlib-dev \
imagemagick-dev \
autoconf \
$PHPIZE_DEPS >/dev/null; then
echo "Could not install build-deps!"
fi
PHP_DEPS_ARE_INSTALLED=1