Skip to content

Commit 2fdcfda

Browse files
author
Gabriel Souza
committed
add xdebug for image
1 parent 6eb03cf commit 2fdcfda

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,14 @@ RUN apt-get -y install libxml2-dev \
4545
RUN docker-php-ext-install bcmath
4646
RUN docker-php-ext-install xml
4747

48+
49+
RUN pecl install xdebug; \
50+
docker-php-ext-enable xdebug; \
51+
echo "error_reporting = E_ALL" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini; \
52+
echo "display_startup_errors = On" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini; \
53+
echo "display_errors = On" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini; \
54+
echo "xdebug.remote_enable=1" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini;
55+
4856
# configure apache
4957

5058
# Enable apache modules

build.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22

33
client = docker.from_env()
44

5-
client.images.build(path=".",tag="ggbr12/php-apache-dev:1.0.1")
6-
client.images.push(repository="ggbr12/php-apache-dev", tag="1.0.1")
5+
client.images.build(path=".",tag="ggbr12/php-apache-dev:1.0.2")
6+
client.images.push(repository="ggbr12/php-apache-dev", tag="1.0.2")

0 commit comments

Comments
 (0)