FIX: set php.ini so larger attachements may be uploaded

This commit is contained in:
Dominik Meyer 2021-01-17 16:44:31 +01:00
parent 2e3e7f7630
commit d1f3c3463e
No known key found for this signature in database
GPG Key ID: B4C312B600606B64

View File

@ -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"]