From dc0d5d6f28874279746fca12c42283463d1469ce Mon Sep 17 00:00:00 2001 From: filesite Date: Thu, 22 Aug 2024 14:43:21 +0800 Subject: [PATCH] change memory_limit for php --- Dockerfile | 5 +++-- Dockerfile_samba | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index bad448e..6c3c8b9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,8 +4,9 @@ RUN apk add rsync nginx zlib-dev libpng-dev freetype-dev libjpeg-turbo-dev \ && docker-php-ext-install -j$(nproc) gd \ && cp /usr/local/etc/php/php.ini-production /usr/local/etc/php/php.ini \ && cd /usr/local/etc/php/ \ - && sed -i 's/upload_max_filesize = 2M/upload_max_filesize = 20M/g' php.ini \ - && sed -i 's/post_max_size = 8M/post_max_size = 20M/g' php.ini \ + && sed -i 's/upload_max_filesize = 2M/upload_max_filesize = 100M/g' php.ini \ + && sed -i 's/post_max_size = 8M/post_max_size = 100M/g' php.ini \ + && sed -i 's/memory_limit = 128M/memory_limit = 1024M/g' php.ini \ && mkdir -p /var/www/downloads \ && cd /var/www/downloads/ \ && wget "https://git.filesite.io/filesite/machete/archive/master.tar.gz" \ diff --git a/Dockerfile_samba b/Dockerfile_samba index 135ab43..b4f83a9 100644 --- a/Dockerfile_samba +++ b/Dockerfile_samba @@ -8,8 +8,9 @@ RUN yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.n && yum -y install php82-php-fpm php82-php-gd php82-php-mbstring nginx wget rsync samba \ && ln -s /opt/remi/php82/root/usr/sbin/php-fpm /usr/sbin/php-fpm \ && cd /etc/opt/remi/php82/ \ - && sed -i 's/upload_max_filesize = 2M/upload_max_filesize = 20M/g' php.ini \ - && sed -i 's/post_max_size = 8M/post_max_size = 20M/g' php.ini \ + && sed -i 's/upload_max_filesize = 2M/upload_max_filesize = 100M/g' php.ini \ + && sed -i 's/post_max_size = 8M/post_max_size = 100M/g' php.ini \ + && sed -i 's/memory_limit = 128M/memory_limit = 1024M/g' php.ini \ && mkdir -p /var/www/downloads && cd /var/www/downloads/ \ && wget "https://git.filesite.io/filesite/machete/archive/master.tar.gz" \ && tar -zxvf master.tar.gz \