diff --git a/Dockerfile.template b/Dockerfile.template index dda965d..e904cee 100644 --- a/Dockerfile.template +++ b/Dockerfile.template @@ -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 \ diff --git a/docker-run.sh b/docker-run.sh index 7546aaa..590fb99 100755 --- a/docker-run.sh +++ b/docker-run.sh @@ -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