From 49ee317de1b7927c45b5181d10e79e2fc69c4fb5 Mon Sep 17 00:00:00 2001 From: hide_d Date: Sun, 2 Jul 2023 17:43:49 +0000 Subject: [PATCH] =?UTF-8?q?xdebug=20=EC=84=A4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hidche/app/Dockerfile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/hidche/app/Dockerfile b/hidche/app/Dockerfile index e619e3b..0b5309e 100644 --- a/hidche/app/Dockerfile +++ b/hidche/app/Dockerfile @@ -32,6 +32,23 @@ RUN curl -fsSL https://deb.nodesource.com/setup_lts.x | bash - && \ apt install -yq nodejs RUN npm install -g npm +ARG XDEBUG=0 + +#xdebug +RUN if [ "$XDEBUG" != "0" ]; then \ + pecl install xdebug; \ + docker-php-ext-enable xdebug; \ + fi; +# 환경 설정을 나누기 위해. +RUN if [ "$XDEBUG" != "0" ]; then \ + {\ + echo "[xdebug]"; \ + echo "xdebug.mode=profile"; \ + echo "xdebug.profiler_append=1"; \ + echo 'xdebug.output_dir="/var/www/html/sam/d_log"'; \ + } >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini; \ + fi; + #from nextcloud setting RUN mkdir -p /var/www/html/; \ mkdir -p /var/www/.ssh;