forked from Wavyzz/dolibarr-docker
Add env var to change php.ini upload size
This commit is contained in:
@@ -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 \
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user