Add env var to change php.ini upload size

This commit is contained in:
vincowl
2023-02-04 14:06:01 +01:00
parent 434167c560
commit 7f2b49ceb4
2 changed files with 3 additions and 0 deletions

View File

@@ -34,6 +34,7 @@ ENV WWW_GROUP_ID 33
ENV PHP_INI_DATE_TIMEZONE 'UTC'
ENV PHP_INI_MEMORY_LIMIT 256M
ENV PHP_INI_UPLOAD_SIZE 40M
RUN apt-get update -y \
&& apt-get dist-upgrade -y \

View File

@@ -42,6 +42,8 @@ function initDolibarr()
date.timezone = ${PHP_INI_DATE_TIMEZONE}
sendmail_path = /usr/sbin/sendmail -t -i
memory_limit = ${PHP_INI_MEMORY_LIMIT}
upload_max_filesize = ${PHP_INI_UPLOAD_SIZE}
post_max_size = ${PHP_INI_UPLOAD_SIZE}
EOF
if [[ ! -f /var/www/html/conf/conf.php ]]; then