xdebug 설정

This commit is contained in:
2023-07-02 17:43:49 +00:00
parent 526eb1bc2a
commit 49ee317de1
+17
View File
@@ -32,6 +32,23 @@ RUN curl -fsSL https://deb.nodesource.com/setup_lts.x | bash - && \
apt install -yq nodejs apt install -yq nodejs
RUN npm install -g npm 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 #from nextcloud setting
RUN mkdir -p /var/www/html/; \ RUN mkdir -p /var/www/html/; \
mkdir -p /var/www/.ssh; mkdir -p /var/www/.ssh;