Skip to content

Commit 1148a3d

Browse files
committed
Merge pull request laradock#91 from LaraDock/xdebug
Xdebug
2 parents 4f9cdb0 + bec1a32 commit 1148a3d

4 files changed

Lines changed: 26 additions & 8 deletions

File tree

php-fpm/Dockerfile-55

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,23 @@ ADD ./laravel.pool.conf /usr/local/etc/php-fpm.d/
88
RUN apt-get update && apt-get install -y \
99
libpq-dev \
1010
libmemcached-dev \
11-
curl
11+
curl \
12+
--no-install-recommends \
13+
&& rm -r /var/lib/apt/lists/*
1214

1315
# Install extensions using the helper script provided by the base image
1416
RUN docker-php-ext-install \
1517
pdo_mysql \
1618
pdo_pgsql
1719

18-
#Install memcached
20+
# Install memcached
1921
RUN pecl install memcached \
2022
&& docker-php-ext-enable memcached
2123

24+
# Install xdebug
25+
RUN pecl install xdebug \
26+
&& docker-php-ext-enable xdebug
27+
2228
RUN usermod -u 1000 www-data
2329

2430
WORKDIR /var/www/laravel

php-fpm/Dockerfile-56

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,23 @@ ADD ./laravel.pool.conf /usr/local/etc/php-fpm.d/
88
RUN apt-get update && apt-get install -y \
99
libpq-dev \
1010
libmemcached-dev \
11-
curl
11+
curl \
12+
--no-install-recommends \
13+
&& rm -r /var/lib/apt/lists/*
1214

1315
# Install extensions using the helper script provided by the base image
1416
RUN docker-php-ext-install \
1517
pdo_mysql \
1618
pdo_pgsql
1719

18-
#Install memcached
20+
# Install memcached
1921
RUN pecl install memcached \
2022
&& docker-php-ext-enable memcached
2123

24+
# Install xdebug
25+
RUN pecl install xdebug \
26+
&& docker-php-ext-enable xdebug
27+
2228
RUN usermod -u 1000 www-data
2329

2430
WORKDIR /var/www/laravel

php-fpm/Dockerfile-70

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ ADD ./laravel.pool.conf /usr/local/etc/php-fpm.d/
88
RUN apt-get update && apt-get install -y \
99
libpq-dev \
1010
libmemcached-dev \
11-
curl
11+
curl \
12+
--no-install-recommends \
13+
&& rm -r /var/lib/apt/lists/*
1214

1315
# Install extensions using the helper script provided by the base image
1416
RUN docker-php-ext-install \
@@ -23,6 +25,10 @@ RUN curl -L -o /tmp/memcached.tar.gz "https://github.com/php-memcached-dev/php-m
2325
&& docker-php-ext-install memcached \
2426
&& rm /tmp/memcached.tar.gz
2527

28+
# Install xdebug
29+
RUN pecl install xdebug \
30+
&& docker-php-ext-enable xdebug
31+
2632
RUN usermod -u 1000 www-data
2733

2834
WORKDIR /var/www/laravel

php-fpm/laravel.ini

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
date.timezone = UTC
2-
display_errors = Off
3-
log_errors = On
1+
date.timezone=UTC
2+
display_errors=Off
3+
log_errors=On

0 commit comments

Comments
 (0)