mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 17:10:53 +00:00
`curl` is required to install blackfire and is not included in sylius/standard:1.11-traditional Curl installation ask a question, this is why I also add the non-interactive mode.
11 lines
682 B
Docker
11 lines
682 B
Docker
FROM sylius/standard:1.11-traditional
|
|
|
|
RUN apt-get update && apt-get install curl php8.0-xdebug -y && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/*
|
|
|
|
RUN version=$(php -r "echo PHP_MAJOR_VERSION.PHP_MINOR_VERSION;") \
|
|
&& architecture=$(uname -m) \
|
|
&& curl -A "Docker" -o /tmp/blackfire-probe.tar.gz -D - -L -s https://blackfire.io/api/v1/releases/probe/php/linux/$architecture/$version \
|
|
&& mkdir -p /tmp/blackfire \
|
|
&& tar zxpf /tmp/blackfire-probe.tar.gz -C /tmp/blackfire \
|
|
&& mv /tmp/blackfire/blackfire-*.so $(php -r "echo ini_get ('extension_dir');")/blackfire.so \
|
|
&& rm -rf /tmp/blackfire /tmp/blackfire-probe.tar.gz
|