docker: enable profiling with xdebug

This commit is contained in:
Zankaria authored and Zankaria committed 2024-04-16 22:32:41 +02:00
1 parent fb191a0ffd
commit 5c99b0f4f3
4 files changed
+33 -1

No files matched your search

+16
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" ]