From d1f3c3463e4f7faa23edba3f0c37af70b698a4b0 Mon Sep 17 00:00:00 2001 From: Dominik Meyer Date: Sun, 17 Jan 2021 16:44:31 +0100 Subject: [PATCH] FIX: set php.ini so larger attachements may be uploaded --- Dockerfile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Dockerfile b/Dockerfile index 312550a..8bac002 100644 --- a/Dockerfile +++ b/Dockerfile @@ -85,9 +85,16 @@ RUN cp wikindx/config.php.dist wikindx/config.php COPY create.sql . COPY docker-entrypoint-wikindx /usr/local/bin/ RUN chown www-data.www-data wikindx -R + +RUN cp /usr/local/etc/php/php.ini-production /usr/local/etc/php/php.ini +RUN sed -i 's/post_max_size.=.*/post_max_size = 100M/' /usr/local/etc/php/php.ini +RUN sed -i 's/upload_max_filesize.=.*/upload_max_filesize = 100M/' /usr/local/etc/php/php.ini RUN echo "mysql.default_socket = /var/run/mysqld/mysqld.sock" >> /usr/local/etc/php/conf.d/docker-php-ext-mysqli.ini RUN echo "mysqli.default_socket = /var/run/mysqld/mysqld.sock" >> /usr/local/etc/php/conf.d/docker-php-ext-mysqli.ini + + + VOLUME ["/var/lib/mysql"] VOLUME ["/var/www/html/wikindx"]