From e185e36a2ad8cb73720ea00c2c13351b5c559202 Mon Sep 17 00:00:00 2001 From: Timothy Mugo Date: Tue, 18 Aug 2026 12:58:04 +0300 Subject: [PATCH] chore: fix wp folder permissions --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index fd774305..10fdac70 100644 --- a/Dockerfile +++ b/Dockerfile @@ -58,9 +58,10 @@ COPY --chmod=755 wordpress.sh /usr/local/sbin/ EXPOSE 80 443 # Ensure WordPress core remains read-only for the PHP user; only wp-content needs to be writable -RUN chown -R www-data:www-data /var/www/html/wp-content \ +RUN chown -R www-data:www-data /var/www/html \ && find /var/www/html -type d -exec chmod 755 {} + \ && find /var/www/html -type f -exec chmod 644 {} + + ENTRYPOINT ["/usr/local/sbin/wordpress.sh"] CMD ["php-fpm"] \ No newline at end of file