add readme, outsource php-settings

This commit is contained in:
Robert Nasarek 2022-10-05 12:19:48 +02:00
parent c933320363
commit 1c6705b722
4 changed files with 36 additions and 15 deletions

View file

@ -12,18 +12,4 @@ RUN pecl install apcu uploadprogress
RUN docker-php-ext-enable apcu uploadprogress
# Remove build packages
RUN apk del build-base autoconf
# Custom PHP settings
## PHP
RUN { \
echo 'max_execution_time = 60'; \
echo 'max_input_time = 30'; \
echo 'max_input_nesting_level = 640'; \
echo 'max_input_vars = 10000'; \
echo 'memory_limit = 512M'; \
echo 'upload_max_filesize = 20M'; \
echo 'max_file_uploads = 50'; \
echo 'post_max_size = 20M'; \
} > /usr/local/etc/php/conf.d/99-custom-settings.ini;
RUN apk del build-base autoconf

View file

@ -0,0 +1,8 @@
max_execution_time = 60
max_input_time = 30
max_input_nesting_level = 640
max_input_vars = 10000
memory_limit = 512M
upload_max_filesize = 20M
max_file_uploads = 50
post_max_size = 20M