File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,20 @@ FROM $LAYER_IMAGE
4
4
# Override the config so that PHP-FPM listens on port 9000
5
5
COPY php-fpm.conf /opt/bref/etc/php-fpm.conf
6
6
7
+ USER root
8
+ ENV current_os=linux
9
+ RUN version=$(php -r "echo PHP_MAJOR_VERSION.PHP_MINOR_VERSION;" )-zts \
10
+ && curl -A "Docker" -o /tmp/blackfire-probe.tar.gz -D - -L -s https://blackfire.io/api/v1/releases/probe/php/$current_os/amd64/$version \
11
+ && mkdir -p /tmp/blackfire \
12
+ && tar zxpf /tmp/blackfire-probe.tar.gz -C /tmp/blackfire \
13
+ && cp /tmp/blackfire/blackfire-*.so $(php -r "echo ini_get('extension_dir');" )/blackfire.so \
14
+ && rm -rf /tmp/blackfire /tmp/blackfire-probe.tar.gz
15
+
16
+ # Build the final image from the lambci image that is close to the production environment
17
+ FROM lambci/lambda:provided
18
+
19
+ COPY --from=0 /opt /opt
20
+
7
21
EXPOSE 9000
8
22
9
23
# Clear the parent entrypoint
You can’t perform that action at this time.
0 commit comments