From 636325df5de8aaee3fd1ed50f88c68264152df46 Mon Sep 17 00:00:00 2001 From: "demidov@dimti.ru" Date: Sat, 5 Nov 2022 16:18:15 +0300 Subject: [PATCH] move upload max file size php config option nearby with post max size --- wp/Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wp/Dockerfile b/wp/Dockerfile index efe0779..71621dc 100644 --- a/wp/Dockerfile +++ b/wp/Dockerfile @@ -1,7 +1,8 @@ FROM wordpress:5.7.2 RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini" -RUN sed -i 's/upload_max_filesize = 2M/upload_max_filesize = 256M/' "$PHP_INI_DIR/php.ini" RUN sed -i 's/max_input_time = 60/max_input_time = 300/' "$PHP_INI_DIR/php.ini" RUN sed -i 's/memory_limit = 128M/memory_limit = 256M/' "$PHP_INI_DIR/php.ini" RUN sed -i 's/max_execution_time = 30/max_execution_time = 300/' "$PHP_INI_DIR/php.ini" -RUN sed -i 's/post_max_size = 8M/post_max_size = 512M/' "$PHP_INI_DIR/php.ini" \ No newline at end of file +RUN sed -i 's/upload_max_filesize = 2M/upload_max_filesize = 256M/' "$PHP_INI_DIR/php.ini" +RUN sed -i 's/post_max_size = 8M/post_max_size = 512M/' "$PHP_INI_DIR/php.ini" +