Skip to content

Instantly share code, notes, and snippets.

@zetogk
Created July 1, 2021 03:18
Show Gist options
  • Save zetogk/4d180630ad96c854472ccca726a0104b to your computer and use it in GitHub Desktop.
Save zetogk/4d180630ad96c854472ccca726a0104b to your computer and use it in GitHub Desktop.
Dockerfile for Wordpress with max_filesize modified
FROM wordpress:5-apache
VOLUME ["/var/www/html/wp-content"]
# PERMISSION: Give permission to read/write in wp-content
RUN chown -R www-data.www-data /var/www/html/wp-content
# In case filesize is not modified, you have to enter to the instance and run the next command manually
RUN echo "php_value upload_max_filesize 700M" >> /var/www/html/.htaccess && echo "php_value post_max_size 702M" >> /var/www/html/.htaccess
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment