From 5714672aa6f2b5cbac6d5d268763bf06c607a5eb Mon Sep 17 00:00:00 2001 From: Rodrigo Aguilera Date: Sat, 10 Mar 2018 17:32:26 +0100 Subject: [PATCH] Give ownership for www-data to /var/www --- 11.0/apache/Dockerfile | 4 ++-- 11.0/fpm-alpine/Dockerfile | 4 ++-- 11.0/fpm/Dockerfile | 4 ++-- 12.0/apache/Dockerfile | 4 ++-- 12.0/fpm-alpine/Dockerfile | 4 ++-- 12.0/fpm/Dockerfile | 4 ++-- 13.0/apache/Dockerfile | 4 ++-- 13.0/fpm-alpine/Dockerfile | 4 ++-- 13.0/fpm/Dockerfile | 4 ++-- Dockerfile-alpine.template | 4 ++-- Dockerfile-debian.template | 4 ++-- 11 files changed, 22 insertions(+), 22 deletions(-) diff --git a/11.0/apache/Dockerfile b/11.0/apache/Dockerfile index 88d1472..bc4944b 100644 --- a/11.0/apache/Dockerfile +++ b/11.0/apache/Dockerfile @@ -89,8 +89,8 @@ RUN { \ echo 'opcache.revalidate_freq=1'; \ } > /usr/local/etc/php/conf.d/opcache-recommended.ini; \ \ - chown -R www-data:root /var/www/html; \ - chmod -R g=u /var/www/html + chown -R www-data:root /var/www; \ + chmod -R g=u /var/www VOLUME /var/www/html diff --git a/11.0/fpm-alpine/Dockerfile b/11.0/fpm-alpine/Dockerfile index 0e352c4..160420d 100644 --- a/11.0/fpm-alpine/Dockerfile +++ b/11.0/fpm-alpine/Dockerfile @@ -80,8 +80,8 @@ RUN { \ echo 'opcache.revalidate_freq=1'; \ } > /usr/local/etc/php/conf.d/opcache-recommended.ini; \ \ - chown -R www-data:root /var/www/html; \ - chmod -R g=u /var/www/html + chown -R www-data:root /var/www; \ + chmod -R g=u /var/www VOLUME /var/www/html diff --git a/11.0/fpm/Dockerfile b/11.0/fpm/Dockerfile index f176960..8f7ebc1 100644 --- a/11.0/fpm/Dockerfile +++ b/11.0/fpm/Dockerfile @@ -89,8 +89,8 @@ RUN { \ echo 'opcache.revalidate_freq=1'; \ } > /usr/local/etc/php/conf.d/opcache-recommended.ini; \ \ - chown -R www-data:root /var/www/html; \ - chmod -R g=u /var/www/html + chown -R www-data:root /var/www; \ + chmod -R g=u /var/www VOLUME /var/www/html diff --git a/12.0/apache/Dockerfile b/12.0/apache/Dockerfile index 28a9dde..1f6413a 100644 --- a/12.0/apache/Dockerfile +++ b/12.0/apache/Dockerfile @@ -89,8 +89,8 @@ RUN { \ echo 'opcache.revalidate_freq=1'; \ } > /usr/local/etc/php/conf.d/opcache-recommended.ini; \ \ - chown -R www-data:root /var/www/html; \ - chmod -R g=u /var/www/html + chown -R www-data:root /var/www; \ + chmod -R g=u /var/www VOLUME /var/www/html diff --git a/12.0/fpm-alpine/Dockerfile b/12.0/fpm-alpine/Dockerfile index 57ac1bc..e8daeb5 100644 --- a/12.0/fpm-alpine/Dockerfile +++ b/12.0/fpm-alpine/Dockerfile @@ -80,8 +80,8 @@ RUN { \ echo 'opcache.revalidate_freq=1'; \ } > /usr/local/etc/php/conf.d/opcache-recommended.ini; \ \ - chown -R www-data:root /var/www/html; \ - chmod -R g=u /var/www/html + chown -R www-data:root /var/www; \ + chmod -R g=u /var/www VOLUME /var/www/html diff --git a/12.0/fpm/Dockerfile b/12.0/fpm/Dockerfile index 4202bf0..e507e9c 100644 --- a/12.0/fpm/Dockerfile +++ b/12.0/fpm/Dockerfile @@ -89,8 +89,8 @@ RUN { \ echo 'opcache.revalidate_freq=1'; \ } > /usr/local/etc/php/conf.d/opcache-recommended.ini; \ \ - chown -R www-data:root /var/www/html; \ - chmod -R g=u /var/www/html + chown -R www-data:root /var/www; \ + chmod -R g=u /var/www VOLUME /var/www/html diff --git a/13.0/apache/Dockerfile b/13.0/apache/Dockerfile index b2a965f..c8454c7 100644 --- a/13.0/apache/Dockerfile +++ b/13.0/apache/Dockerfile @@ -89,8 +89,8 @@ RUN { \ echo 'opcache.revalidate_freq=1'; \ } > /usr/local/etc/php/conf.d/opcache-recommended.ini; \ \ - chown -R www-data:root /var/www/html; \ - chmod -R g=u /var/www/html + chown -R www-data:root /var/www; \ + chmod -R g=u /var/www VOLUME /var/www/html diff --git a/13.0/fpm-alpine/Dockerfile b/13.0/fpm-alpine/Dockerfile index e2c9a8d..eb87ea0 100644 --- a/13.0/fpm-alpine/Dockerfile +++ b/13.0/fpm-alpine/Dockerfile @@ -80,8 +80,8 @@ RUN { \ echo 'opcache.revalidate_freq=1'; \ } > /usr/local/etc/php/conf.d/opcache-recommended.ini; \ \ - chown -R www-data:root /var/www/html; \ - chmod -R g=u /var/www/html + chown -R www-data:root /var/www; \ + chmod -R g=u /var/www VOLUME /var/www/html diff --git a/13.0/fpm/Dockerfile b/13.0/fpm/Dockerfile index 0e4b650..8f623cd 100644 --- a/13.0/fpm/Dockerfile +++ b/13.0/fpm/Dockerfile @@ -89,8 +89,8 @@ RUN { \ echo 'opcache.revalidate_freq=1'; \ } > /usr/local/etc/php/conf.d/opcache-recommended.ini; \ \ - chown -R www-data:root /var/www/html; \ - chmod -R g=u /var/www/html + chown -R www-data:root /var/www; \ + chmod -R g=u /var/www VOLUME /var/www/html diff --git a/Dockerfile-alpine.template b/Dockerfile-alpine.template index b1a0f96..41e608b 100644 --- a/Dockerfile-alpine.template +++ b/Dockerfile-alpine.template @@ -80,8 +80,8 @@ RUN { \ echo 'opcache.revalidate_freq=1'; \ } > /usr/local/etc/php/conf.d/opcache-recommended.ini; \ \ - chown -R www-data:root /var/www/html; \ - chmod -R g=u /var/www/html + chown -R www-data:root /var/www; \ + chmod -R g=u /var/www VOLUME /var/www/html %%VARIANT_EXTRAS%% diff --git a/Dockerfile-debian.template b/Dockerfile-debian.template index a5db872..5b73a10 100644 --- a/Dockerfile-debian.template +++ b/Dockerfile-debian.template @@ -89,8 +89,8 @@ RUN { \ echo 'opcache.revalidate_freq=1'; \ } > /usr/local/etc/php/conf.d/opcache-recommended.ini; \ \ - chown -R www-data:root /var/www/html; \ - chmod -R g=u /var/www/html + chown -R www-data:root /var/www; \ + chmod -R g=u /var/www VOLUME /var/www/html %%VARIANT_EXTRAS%%