From 81e8b8824e8635321a911d8e4770e1a0df8d4ce7 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Sat, 8 Jul 2023 07:31:33 +0200 Subject: [PATCH] Add XDebug support for CLI commands --- docker/php-fpm/Dockerfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docker/php-fpm/Dockerfile b/docker/php-fpm/Dockerfile index e09834c1..df44d3a5 100644 --- a/docker/php-fpm/Dockerfile +++ b/docker/php-fpm/Dockerfile @@ -16,9 +16,12 @@ RUN apt-get update \ && npm install -g npm \ && apt-get install -q -y ssmtp mailutils \ && echo "hostname=localhost.localdomain" > /etc/ssmtp/ssmtp.conf \ - && echo "root=root@presta.com" >> /etc/ssmtp/ssmtp.conf \ - && echo "mailhub=mailhog:1025" >> /etc/ssmtp/ssmtp.conf \ + && echo "root=root@example.org" >> /etc/ssmtp/ssmtp.conf \ + && echo "mailhub=mailpit:1025" >> /etc/ssmtp/ssmtp.conf \ && echo "sendmail_path=/usr/sbin/ssmtp -t" >> /usr/local/etc/php/conf.d/php-sendmail.ini \ + && echo "alias ll=\"ls -al\"" >> /root/.bashrc \ + && echo "export XDEBUG_TRIGGER=1" >> /root/.bashrc \ + && echo "export PHP_IDE_CONFIG=\"serverName=host.docker.internal\"" >> /root/.bashrc \ && apt-get -y autoremove \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*