You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Dockerfile-alpine.template
+11-2Lines changed: 11 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -68,7 +68,6 @@ RUN { \
68
68
echo 'html_errors = Off'; \
69
69
} > /usr/local/etc/php/conf.d/error-logging.ini
70
70
%%VARIANT_EXTRAS%%
71
-
VOLUME /var/www/html
72
71
73
72
ENV WORDPRESS_VERSION %%WORDPRESS_VERSION%%
74
73
ENV WORDPRESS_SHA1 %%WORDPRESS_SHA1%%
@@ -79,7 +78,17 @@ RUN set -ex; \
79
78
# upstream tarballs include ./wordpress/ so this gives us /usr/src/wordpress
80
79
tar -xzf wordpress.tar.gz -C /usr/src/; \
81
80
rm wordpress.tar.gz; \
82
-
chown -R www-data:www-data /usr/src/wordpress
81
+
chown -R www-data:www-data /usr/src/wordpress; \
82
+
# pre-create wp-content (and single-level children) for folks who want to bind-mount themes, etc so permissions are pre-created properly instead of root:root
Copy file name to clipboardExpand all lines: Dockerfile-debian.template
+11-2Lines changed: 11 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -73,7 +73,6 @@ RUN { \
73
73
echo 'html_errors = Off'; \
74
74
} > /usr/local/etc/php/conf.d/error-logging.ini
75
75
%%VARIANT_EXTRAS%%
76
-
VOLUME /var/www/html
77
76
78
77
ENV WORDPRESS_VERSION %%WORDPRESS_VERSION%%
79
78
ENV WORDPRESS_SHA1 %%WORDPRESS_SHA1%%
@@ -84,7 +83,17 @@ RUN set -ex; \
84
83
# upstream tarballs include ./wordpress/ so this gives us /usr/src/wordpress
85
84
tar -xzf wordpress.tar.gz -C /usr/src/; \
86
85
rm wordpress.tar.gz; \
87
-
chown -R www-data:www-data /usr/src/wordpress
86
+
chown -R www-data:www-data /usr/src/wordpress; \
87
+
# pre-create wp-content (and single-level children) for folks who want to bind-mount themes, etc so permissions are pre-created properly instead of root:root
# upstream tarballs include ./wordpress/ so this gives us /usr/src/wordpress
103
102
tar -xzf wordpress.tar.gz -C /usr/src/; \
104
103
rm wordpress.tar.gz; \
105
-
chown -R www-data:www-data /usr/src/wordpress
104
+
chown -R www-data:www-data /usr/src/wordpress; \
105
+
# pre-create wp-content (and single-level children) for folks who want to bind-mount themes, etc so permissions are pre-created properly instead of root:root
# upstream tarballs include ./wordpress/ so this gives us /usr/src/wordpress
79
78
tar -xzf wordpress.tar.gz -C /usr/src/; \
80
79
rm wordpress.tar.gz; \
81
-
chown -R www-data:www-data /usr/src/wordpress
80
+
chown -R www-data:www-data /usr/src/wordpress; \
81
+
# pre-create wp-content (and single-level children) for folks who want to bind-mount themes, etc so permissions are pre-created properly instead of root:root
# upstream tarballs include ./wordpress/ so this gives us /usr/src/wordpress
84
83
tar -xzf wordpress.tar.gz -C /usr/src/; \
85
84
rm wordpress.tar.gz; \
86
-
chown -R www-data:www-data /usr/src/wordpress
85
+
chown -R www-data:www-data /usr/src/wordpress; \
86
+
# pre-create wp-content (and single-level children) for folks who want to bind-mount themes, etc so permissions are pre-created properly instead of root:root
# upstream tarballs include ./wordpress/ so this gives us /usr/src/wordpress
104
103
tar -xzf wordpress.tar.gz -C /usr/src/; \
105
104
rm wordpress.tar.gz; \
106
-
chown -R www-data:www-data /usr/src/wordpress
105
+
chown -R www-data:www-data /usr/src/wordpress; \
106
+
# pre-create wp-content (and single-level children) for folks who want to bind-mount themes, etc so permissions are pre-created properly instead of root:root
# upstream tarballs include ./wordpress/ so this gives us /usr/src/wordpress
80
79
tar -xzf wordpress.tar.gz -C /usr/src/; \
81
80
rm wordpress.tar.gz; \
82
-
chown -R www-data:www-data /usr/src/wordpress
81
+
chown -R www-data:www-data /usr/src/wordpress; \
82
+
# pre-create wp-content (and single-level children) for folks who want to bind-mount themes, etc so permissions are pre-created properly instead of root:root
# upstream tarballs include ./wordpress/ so this gives us /usr/src/wordpress
85
84
tar -xzf wordpress.tar.gz -C /usr/src/; \
86
85
rm wordpress.tar.gz; \
87
-
chown -R www-data:www-data /usr/src/wordpress
86
+
chown -R www-data:www-data /usr/src/wordpress; \
87
+
# pre-create wp-content (and single-level children) for folks who want to bind-mount themes, etc so permissions are pre-created properly instead of root:root
# upstream tarballs include ./wordpress/ so this gives us /usr/src/wordpress
104
103
tar -xzf wordpress.tar.gz -C /usr/src/; \
105
104
rm wordpress.tar.gz; \
106
-
chown -R www-data:www-data /usr/src/wordpress
105
+
chown -R www-data:www-data /usr/src/wordpress; \
106
+
# pre-create wp-content (and single-level children) for folks who want to bind-mount themes, etc so permissions are pre-created properly instead of root:root
0 commit comments