From 98c01625d1d8162f06ffa9ec33f028f22c109cdb Mon Sep 17 00:00:00 2001 From: ErickSkrauch Date: Sun, 29 May 2016 23:38:19 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B0=20=D0=BA=D0=BE=D0=BD=D1=84=D0=B8=D0=B3=D1=83=D1=80?= =?UTF-8?q?=D0=B0=D1=86=D0=B8=D1=8F=20=D0=B4=D0=BB=D1=8F=20php?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 5 ++++- docker/php/php.ini | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 docker/php/php.ini diff --git a/Dockerfile b/Dockerfile index 5ba392e..28ea9d3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -47,13 +47,16 @@ RUN chmod a+x /usr/local/bin/composer WORKDIR /var/www/html +# Custorm php configuration +COPY ./docker/php/php.ini /usr/local/etc/php/ + # Copy the working dir to the image's web root COPY . /var/www/html # The following directories are .dockerignored to not pollute the docker images # with local logs and published assets from development. So we need to create # empty dirs and set right permissions inside the container. -RUN mkdir api/runtime api/web/assets console/runtime \ +RUN mkdir -p api/runtime api/web/assets console/runtime \ && chown www-data:www-data api/runtime api/web/assets console/runtime # Expose everything under /var/www (vendor + html) diff --git a/docker/php/php.ini b/docker/php/php.ini new file mode 100644 index 0000000..a9c3fab --- /dev/null +++ b/docker/php/php.ini @@ -0,0 +1,2 @@ +error_reporting = E_ALL; +display_errors = On;