Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 {} +
Comment thread
timothygachengo marked this conversation as resolved.


ENTRYPOINT ["/usr/local/sbin/wordpress.sh"]
CMD ["php-fpm"]