From 15422886d732eaf93e6f99f84984fc1534d80bdf Mon Sep 17 00:00:00 2001 From: Rodrigo Aguilera Date: Tue, 3 Apr 2018 21:12:30 +0200 Subject: [PATCH 1/2] Create a data dir outside the webroot. --- 12.0/apache/Dockerfile | 1 + 12.0/fpm-alpine/Dockerfile | 1 + 12.0/fpm/Dockerfile | 1 + 13.0/apache/Dockerfile | 1 + 13.0/fpm-alpine/Dockerfile | 1 + 13.0/fpm/Dockerfile | 1 + 6 files changed, 6 insertions(+) diff --git a/12.0/apache/Dockerfile b/12.0/apache/Dockerfile index 76951941..1e9fa6f9 100644 --- a/12.0/apache/Dockerfile +++ b/12.0/apache/Dockerfile @@ -90,6 +90,7 @@ RUN { \ echo 'opcache.revalidate_freq=1'; \ } > /usr/local/etc/php/conf.d/opcache-recommended.ini; \ \ + mkdir /var/www/data; \ chown -R www-data:root /var/www; \ chmod -R g=u /var/www diff --git a/12.0/fpm-alpine/Dockerfile b/12.0/fpm-alpine/Dockerfile index 928cf25a..713453f5 100644 --- a/12.0/fpm-alpine/Dockerfile +++ b/12.0/fpm-alpine/Dockerfile @@ -79,6 +79,7 @@ RUN { \ echo 'opcache.revalidate_freq=1'; \ } > /usr/local/etc/php/conf.d/opcache-recommended.ini; \ \ + mkdir /var/www/data; \ chown -R www-data:root /var/www; \ chmod -R g=u /var/www diff --git a/12.0/fpm/Dockerfile b/12.0/fpm/Dockerfile index 6483bed1..09dc0f04 100644 --- a/12.0/fpm/Dockerfile +++ b/12.0/fpm/Dockerfile @@ -90,6 +90,7 @@ RUN { \ echo 'opcache.revalidate_freq=1'; \ } > /usr/local/etc/php/conf.d/opcache-recommended.ini; \ \ + mkdir /var/www/data; \ chown -R www-data:root /var/www; \ chmod -R g=u /var/www diff --git a/13.0/apache/Dockerfile b/13.0/apache/Dockerfile index 1b941e21..2d32b97f 100644 --- a/13.0/apache/Dockerfile +++ b/13.0/apache/Dockerfile @@ -90,6 +90,7 @@ RUN { \ echo 'opcache.revalidate_freq=1'; \ } > /usr/local/etc/php/conf.d/opcache-recommended.ini; \ \ + mkdir /var/www/data; \ chown -R www-data:root /var/www; \ chmod -R g=u /var/www diff --git a/13.0/fpm-alpine/Dockerfile b/13.0/fpm-alpine/Dockerfile index bd28f494..dd44e271 100644 --- a/13.0/fpm-alpine/Dockerfile +++ b/13.0/fpm-alpine/Dockerfile @@ -79,6 +79,7 @@ RUN { \ echo 'opcache.revalidate_freq=1'; \ } > /usr/local/etc/php/conf.d/opcache-recommended.ini; \ \ + mkdir /var/www/data; \ chown -R www-data:root /var/www; \ chmod -R g=u /var/www diff --git a/13.0/fpm/Dockerfile b/13.0/fpm/Dockerfile index ac61eed8..6dab4207 100644 --- a/13.0/fpm/Dockerfile +++ b/13.0/fpm/Dockerfile @@ -90,6 +90,7 @@ RUN { \ echo 'opcache.revalidate_freq=1'; \ } > /usr/local/etc/php/conf.d/opcache-recommended.ini; \ \ + mkdir /var/www/data; \ chown -R www-data:root /var/www; \ chmod -R g=u /var/www From 8620ea17cb4165201cf34b496d917641427fa4da Mon Sep 17 00:00:00 2001 From: Rodrigo Aguilera Date: Mon, 16 Apr 2018 21:11:51 +0200 Subject: [PATCH 2/2] Update the template files. --- Dockerfile-alpine.template | 1 + Dockerfile-debian.template | 1 + 2 files changed, 2 insertions(+) diff --git a/Dockerfile-alpine.template b/Dockerfile-alpine.template index 03526a1c..e87a4ed4 100644 --- a/Dockerfile-alpine.template +++ b/Dockerfile-alpine.template @@ -78,6 +78,7 @@ RUN { \ echo 'opcache.revalidate_freq=1'; \ } > /usr/local/etc/php/conf.d/opcache-recommended.ini; \ \ + mkdir /var/www/data; \ chown -R www-data:root /var/www; \ chmod -R g=u /var/www diff --git a/Dockerfile-debian.template b/Dockerfile-debian.template index fdb63f66..67891508 100644 --- a/Dockerfile-debian.template +++ b/Dockerfile-debian.template @@ -89,6 +89,7 @@ RUN { \ echo 'opcache.revalidate_freq=1'; \ } > /usr/local/etc/php/conf.d/opcache-recommended.ini; \ \ + mkdir /var/www/data; \ chown -R www-data:root /var/www; \ chmod -R g=u /var/www