From d7bbea1f5506d96c5b767cf75619d9e22f0e8e5a Mon Sep 17 00:00:00 2001 From: Laurent Constantin Date: Mon, 5 Aug 2024 22:55:56 +0200 Subject: [PATCH] fix(docker): Simplify xdebug setup --- doc/Dockerfile | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/doc/Dockerfile b/doc/Dockerfile index 2b26e3a1..19fe312e 100644 --- a/doc/Dockerfile +++ b/doc/Dockerfile @@ -1,13 +1,6 @@ -FROM ghcr.io/biblioverse/biblioteca-docker:1.0.11 as base - -FROM base as debug +FROM ghcr.io/biblioverse/biblioteca-docker:latest as base USER root -RUN /usr/local/bin/install-php-extensions xdebug - -# Somehow echo -e is not working -RUN echo ' \n\ -[xdebug] \n\ -xdebug.idekey=PHPSTORM \n\ -xdebug.mode=off \n\ -xdebug.client_host=host.docker.internal\n ' >> /usr/local/etc/php/conf.d/biblioteca.ini -USER www-data +RUN install-php-extensions xdebug +ENV XDEBUG_MODE=debug +ENV XDEBUG_CONFIG="client_host=host.docker.internal" +USER www-data \ No newline at end of file