Skip to content

Commit c5f928c

Browse files
author
David Pache
authored
Create wp-cli cache dir.
Resolves permission issues with the cache directory creation inside the container during updates.
1 parent 49a8c8a commit c5f928c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@ FROM urre/wordpress-nginx-docker-compose-image
44
RUN curl -o /bin/wp-cli.phar https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
55
RUN chmod +x /bin/wp-cli.phar
66
RUN cd /bin && mv wp-cli.phar wp
7+
RUN mkdir -p /var/www/.wp-cli/cache && chown www-data:www-data /var/www/.wp-cli/cache
78

89
# Note: Use docker-compose up -d --force-recreate --build when Dockerfile has changed.

0 commit comments

Comments
 (0)