File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,17 +8,23 @@ ADD ./laravel.pool.conf /usr/local/etc/php-fpm.d/
88RUN 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
1416RUN docker-php-ext-install \
1517 pdo_mysql \
1618 pdo_pgsql
1719
18- #Install memcached
20+ # Install memcached
1921RUN 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+
2228RUN usermod -u 1000 www-data
2329
2430WORKDIR /var/www/laravel
Original file line number Diff line number Diff line change @@ -8,17 +8,23 @@ ADD ./laravel.pool.conf /usr/local/etc/php-fpm.d/
88RUN 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
1416RUN docker-php-ext-install \
1517 pdo_mysql \
1618 pdo_pgsql
1719
18- #Install memcached
20+ # Install memcached
1921RUN 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+
2228RUN usermod -u 1000 www-data
2329
2430WORKDIR /var/www/laravel
Original file line number Diff line number Diff line change @@ -8,7 +8,9 @@ ADD ./laravel.pool.conf /usr/local/etc/php-fpm.d/
88RUN 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
1416RUN 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+
2632RUN usermod -u 1000 www-data
2733
2834WORKDIR /var/www/laravel
Original file line number Diff line number Diff line change 1- date.timezone = UTC
2- display_errors = Off
3- log_errors = On
1+ date.timezone = UTC
2+ display_errors = Off
3+ log_errors = On
You can’t perform that action at this time.
0 commit comments