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