diff --git a/layers/excimer/Dockerfile b/layers/excimer/Dockerfile index 2fe3c165..72a0ee01 100644 --- a/layers/excimer/Dockerfile +++ b/layers/excimer/Dockerfile @@ -2,7 +2,18 @@ ARG PHP_VERSION ARG BREF_VERSION FROM bref/build-php-$PHP_VERSION:$BREF_VERSION AS ext -RUN pecl install excimer +# Excimer moved from PECL to PIE in 1.2.7, so PECL no longer has the latest release. +ENV EXCIMER_VERSION=1.2.7 +WORKDIR /tmp +RUN mkdir excimer && \ + curl -fLs https://github.com/wikimedia/mediawiki-php-excimer/archive/refs/tags/${EXCIMER_VERSION}.tar.gz \ + | tar xz -C excimer --strip-components=1 +WORKDIR /tmp/excimer +RUN phpize +RUN ./configure +RUN make -j $(nproc) +RUN make install + RUN cp `php-config --extension-dir`/excimer.so /tmp/excimer.so RUN echo 'extension=excimer.so' > /tmp/ext.ini diff --git a/layers/excimer/config.json b/layers/excimer/config.json index 2bf25de7..205ba218 100644 --- a/layers/excimer/config.json +++ b/layers/excimer/config.json @@ -2,6 +2,7 @@ "php": [ "82", "83", - "84" + "84", + "85" ] }