Skip to content

Commit 66fcbf0

Browse files
committed
templates: add wp-content/cache to pre-created directories
1 parent 598769a commit 66fcbf0

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Dockerfile-alpine.template

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,9 @@ RUN set -ex; \
8181
rm wordpress.tar.gz; \
8282
chown -R www-data:www-data /usr/src/wordpress; \
8383
# 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
84+
# wp-content/cache: https://github.com/docker-library/wordpress/issues/534#issuecomment-705733507
8485
mkdir wp-content; \
85-
for dir in /usr/src/wordpress/wp-content/*/; do \
86+
for dir in /usr/src/wordpress/wp-content/*/ cache; do \
8687
dir="$(basename "${dir%/}")"; \
8788
mkdir "wp-content/$dir"; \
8889
done; \

Dockerfile-debian.template

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,9 @@ RUN set -ex; \
8686
rm wordpress.tar.gz; \
8787
chown -R www-data:www-data /usr/src/wordpress; \
8888
# 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
89+
# wp-content/cache: https://github.com/docker-library/wordpress/issues/534#issuecomment-705733507
8990
mkdir wp-content; \
90-
for dir in /usr/src/wordpress/wp-content/*/; do \
91+
for dir in /usr/src/wordpress/wp-content/*/ cache; do \
9192
dir="$(basename "${dir%/}")"; \
9293
mkdir "wp-content/$dir"; \
9394
done; \

0 commit comments

Comments
 (0)