diff --git a/docker/7.1-apache/Dockerfile b/docker/7.1-apache/Dockerfile index 1203421..7523ecf 100644 --- a/docker/7.1-apache/Dockerfile +++ b/docker/7.1-apache/Dockerfile @@ -1,5 +1,4 @@ FROM php:7.1-apache -## Install OS dependencies RUN apt-get update && apt-get install -y \ libfreetype6-dev \ libjpeg62-turbo-dev \ @@ -14,16 +13,17 @@ RUN apt-get update && apt-get install -y \ curl \ git && \ rm -rf /var/lib/apt/lists/* - -## Enable and configure php modules RUN docker-php-ext-configure intl && \ docker-php-ext-install intl && \ docker-php-ext-configure gd --with-freetype-dir=/usr/include/freetype2 --with-jpeg-dir=/usr/include && \ docker-php-ext-install -j$(nproc) gd && \ docker-php-ext-install mysqli zip pdo_mysql bcmath && \ docker-php-ext-install opcache - +RUN mkdir -p /var/log/php && \ + chmod 777 /var/log/php +RUN echo "error_log = /var/log/php/php-error.log" >> /usr/local/etc/php/php.ini && \ + echo "log_errors = On" >> /usr/local/etc/php/php.ini && \ + echo "error_reporting = E_ALL" >> /usr/local/etc/php/php.ini RUN mkdir /var/www/sessions && \ chmod 777 /var/www/sessions - -RUN a2enmod rewrite \ No newline at end of file +RUN a2enmod rewrite