Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion layers/excimer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 2 additions & 1 deletion layers/excimer/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"php": [
"82",
"83",
"84"
"84",
"85"
]
}
Loading