Created
July 1, 2021 03:18
-
-
Save zetogk/4d180630ad96c854472ccca726a0104b to your computer and use it in GitHub Desktop.
Dockerfile for Wordpress with max_filesize modified
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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