Skip to content

Commit

Permalink
Merge pull request #84 from burningmantech/yf-upgrade
Browse files Browse the repository at this point in the history
Upgraded to alpine 3.21 so imagemagick is using the latest libheif that supports iOS 18.
  • Loading branch information
mikeburg authored Dec 26, 2024
2 parents ecfdcb8 + 8058492 commit 0dc3f7b
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 26 deletions.
52 changes: 27 additions & 25 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,32 +4,35 @@ ARG OS_VERSION

FROM php:${PHP_VERSION}-fpm-${OS_NAME}${OS_VERSION}

# Install OS packages required at runtime
RUN apk add --no-cache \
icu \
libjpeg-turbo \
libpng \
libwebp \
libxml2 \
libzip \
mysql-client \
tzdata \
zip \
git \
icu-dev \
imagemagick \
imagemagick-dev \
libjpeg-turbo-dev \
libpng-dev \
libwebp-dev \
libxml2-dev \
libzip-dev \
pcre-dev ${PHPIZE_DEPS} ;
# TODO: Use latest released version, after https://github.com/Imagick/imagick/issues/640 is fixed

ADD --chmod=0755 \
https://github.com/mlocati/docker-php-extension-installer/releases/download/2.6.3/install-php-extensions \
/usr/local/bin/
# TODO: Use latest released version, after https://github.com/Imagick/imagick/issues/640 is fixed
RUN install-php-extensions imagick/imagick@28f27044e435a2b203e32675e942eb8de620ee58 \

# Install OS packages required at runtime
RUN apk update \
&& apk add --no-cache \
icu \
libjpeg-turbo \
libpng \
libwebp \
libxml2 \
libzip \
mysql-client \
tzdata \
zip \
git \
icu-dev \
imagemagick \
imagemagick-dev \
libjpeg-turbo-dev \
libpng-dev \
libwebp-dev \
libxml2-dev \
libzip-dev \
pcre-dev ${PHPIZE_DEPS} \
&& install-php-extensions imagick/imagick@28f27044e435a2b203e32675e942eb8de620ee58 \
&& docker-php-ext-configure opcache --enable-opcache \
&& docker-php-ext-configure intl \
&& docker-php-ext-configure exif \
Expand All @@ -49,7 +52,7 @@ RUN install-php-extensions imagick/imagick@28f27044e435a2b203e32675e942eb8de620e
&& docker-php-ext-configure pcntl --enable-pcntl \
&& docker-php-ext-install pcntl \
&& docker-php-ext-enable imagick \
&& apk del \
&& apk del \
icu-dev \
imagemagick-dev \
libjpeg-turbo-dev \
Expand All @@ -61,7 +64,6 @@ RUN install-php-extensions imagick/imagick@28f27044e435a2b203e32675e942eb8de620e
${PHPIZE_DEPS} \
;


# Install Nginx and supervisor
# Ngnix needs a run directory
# Send log output to supervisord's standard I/O
Expand Down
2 changes: 1 addition & 1 deletion versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# PHP version : OS name : OS version
8.3.12:alpine:3.20
8.3.15:alpine:3.21

0 comments on commit 0dc3f7b

Please sign in to comment.