File tree Expand file tree Collapse file tree 4 files changed +30
-0
lines changed
Expand file tree Collapse file tree 4 files changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -59,6 +59,7 @@ functions:
5959| Decimal | `${bref-extra:decimal-php-81}` |
6060| DS | `${bref-extra:ds-php-81}` |
6161| Elastic APM | `${bref-extra:elastic-apm-php-81}` |
62+ | Excimer | `${bref-extra:excimer-php-81}` |
6263| GD | `${bref-extra:gd-php-81}` |
6364| gnupg | `${bref-extra:gnupg-php-81}` |
6465| GMP | `${bref-extra:gmp-php-81}` |
Original file line number Diff line number Diff line change 1+ ARG PHP_VERSION
2+ ARG BREF_VERSION
3+ FROM bref/build-php-$PHP_VERSION:$BREF_VERSION AS ext
4+
5+ RUN pecl install excimer
6+ RUN cp `php-config --extension-dir`/excimer.so /tmp/excimer.so
7+ RUN echo 'extension=excimer.so' > /tmp/ext.ini
8+
9+ # Build the final image with just the files we need
10+ FROM scratch
11+
12+ # Copy things we installed to the final image
13+ COPY --from=ext /tmp/excimer.so /opt/bref/extensions/excimer.so
14+ COPY --from=ext /tmp/ext.ini /opt/bref/etc/php/conf.d/ext-excimer.ini
Original file line number Diff line number Diff line change 1+ {
2+ "php" : [
3+ " 80" ,
4+ " 81" ,
5+ " 82"
6+ ]
7+ }
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ if (!class_exists ($ class = 'ExcimerProfiler ' )) {
4+ echo sprintf ('FAIL: Class "%s" does not exist. ' , $ class ).PHP_EOL ;
5+ exit (1 );
6+ }
7+
8+ exit (0 );
You can’t perform that action at this time.
0 commit comments