diff --git a/php-fpm/Dockerfile-55 b/php-fpm/Dockerfile-55 index 93d82c52..9d8af111 100644 --- a/php-fpm/Dockerfile-55 +++ b/php-fpm/Dockerfile-55 @@ -8,17 +8,23 @@ ADD ./laravel.pool.conf /usr/local/etc/php-fpm.d/ RUN apt-get update && apt-get install -y \ libpq-dev \ libmemcached-dev \ - curl + curl \ + --no-install-recommends \ + && rm -r /var/lib/apt/lists/* # Install extensions using the helper script provided by the base image RUN docker-php-ext-install \ pdo_mysql \ pdo_pgsql -#Install memcached +# Install memcached RUN pecl install memcached \ && docker-php-ext-enable memcached +# Install xdebug +RUN pecl install xdebug \ + && docker-php-ext-enable xdebug + RUN usermod -u 1000 www-data WORKDIR /var/www/laravel diff --git a/php-fpm/Dockerfile-56 b/php-fpm/Dockerfile-56 index 5da34488..cea383ac 100644 --- a/php-fpm/Dockerfile-56 +++ b/php-fpm/Dockerfile-56 @@ -8,17 +8,23 @@ ADD ./laravel.pool.conf /usr/local/etc/php-fpm.d/ RUN apt-get update && apt-get install -y \ libpq-dev \ libmemcached-dev \ - curl + curl \ + --no-install-recommends \ + && rm -r /var/lib/apt/lists/* # Install extensions using the helper script provided by the base image RUN docker-php-ext-install \ pdo_mysql \ pdo_pgsql -#Install memcached +# Install memcached RUN pecl install memcached \ && docker-php-ext-enable memcached +# Install xdebug +RUN pecl install xdebug \ + && docker-php-ext-enable xdebug + RUN usermod -u 1000 www-data WORKDIR /var/www/laravel diff --git a/php-fpm/Dockerfile-70 b/php-fpm/Dockerfile-70 index 61f21d07..01dfb2c9 100644 --- a/php-fpm/Dockerfile-70 +++ b/php-fpm/Dockerfile-70 @@ -8,7 +8,9 @@ ADD ./laravel.pool.conf /usr/local/etc/php-fpm.d/ RUN apt-get update && apt-get install -y \ libpq-dev \ libmemcached-dev \ - curl + curl \ + --no-install-recommends \ + && rm -r /var/lib/apt/lists/* # Install extensions using the helper script provided by the base image 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 && docker-php-ext-install memcached \ && rm /tmp/memcached.tar.gz +# Install xdebug +RUN pecl install xdebug \ + && docker-php-ext-enable xdebug + RUN usermod -u 1000 www-data WORKDIR /var/www/laravel