-
-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
ARG PHP_VERSION | ||
ARG BREF_VERSION | ||
FROM bref/build-php-$PHP_VERSION:$BREF_VERSION AS ext | ||
|
||
RUN pecl install excimer | ||
RUN cp `php-config --extension-dir`/excimer.so /tmp/excimer.so | ||
RUN echo 'extension=excimer.so' > /tmp/ext.ini | ||
|
||
# Build the final image with just the files we need | ||
FROM scratch | ||
|
||
# Copy things we installed to the final image | ||
COPY --from=ext /tmp/excimer.so /opt/bref/extensions/excimer.so | ||
COPY --from=ext /tmp/ext.ini /opt/bref/etc/php/conf.d/ext-excimer.ini |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"php": [ | ||
"80", | ||
"81", | ||
"82" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?php | ||
|
||
if (!class_exists($class = 'ExcimerProfiler')) { | ||
echo sprintf('FAIL: Class "%s" does not exist.', $class).PHP_EOL; | ||
exit(1); | ||
} | ||
|
||
exit(0); |