From 92fef388000b0e086e3e0427ef2770c7bc062b97 Mon Sep 17 00:00:00 2001 From: Lennard Brinkhaus Date: Sun, 11 Sep 2022 01:24:45 +0200 Subject: [PATCH] feat: Add exif, zip, gd, intl and imagick --- 7.4/Dockerfile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/7.4/Dockerfile b/7.4/Dockerfile index adf2726..3c4b854 100644 --- a/7.4/Dockerfile +++ b/7.4/Dockerfile @@ -27,7 +27,9 @@ RUN apk add --no-cache \ tar \ xz \ # https://github.com/docker-library/php/issues/494 - openssl + openssl \ + imagemagick-dev \ + libzip # ensure www-data user exists RUN set -eux; \ @@ -198,12 +200,14 @@ RUN set -eux; \ php --version COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ +COPY --from=mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/local/bin/ RUN chmod +x /usr/local/bin/docker-php-ext-enable RUN chmod +x /usr/local/bin/docker-php-ext-install RUN chmod +x /usr/local/bin/docker-php-ext-configure +RUN chmod +x /usr/local/bin/install-php-extensions -RUN docker-php-ext-install mysqli && docker-php-ext-enable mysqli +RUN install-php-extensions mysqli exif zip gd intl imagick && docker-php-ext-enable mysqli exif gd intl imagick zip # sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598) RUN docker-php-ext-enable sodium