docker: enable profiling with xdebug

This commit is contained in:
Zankaria
2024-04-12 17:10:19 +02:00
committed by Zankaria
parent fb191a0ffd
commit 5c99b0f4f3
4 changed files with 33 additions and 1 deletions

View File

@@ -0,0 +1,16 @@
# syntax = devthefuture/dockerfile-x
INCLUDE ./docker/php/Dockerfile
RUN apk add --no-cache \
linux-headers \
$PHPIZE_DEPS \
&& pecl update-channels \
&& pecl install xdebug \
&& docker-php-ext-enable xdebug \
&& apk del \
linux-headers \
$PHPIZE_DEPS \
&& rm -rf /var/cache/*
ENV XDEBUG_OUT_DIR=/var/www/xdebug_out
CMD [ "bootstrap.sh" ]