File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ ARG DEBIAN_FRONTEND=noninteractive
14
14
ARG env
15
15
ARG fqdn
16
16
ARG max_upload_size
17
- ARG memory_limit ="256M"
17
+ ARG php_memory_limit ="256M"
18
18
19
19
# PACKAGES INSTALL
20
20
@@ -55,7 +55,7 @@ RUN cp /tmp/repomanager/docker/config/php/www.conf /etc/php/8.3/fpm/pool.d/www.c
55
55
RUN cp /tmp/repomanager/docker/config/php/opcache.ini /etc/php/8.3/mods-available/opcache.ini
56
56
RUN sed -i "s/^upload_max_filesize.*$/upload_max_filesize = $max_upload_size/g" /etc/php/8.3/fpm/php.ini
57
57
RUN sed -i "s/^post_max_size.*$/post_max_size = $max_upload_size/g" /etc/php/8.3/fpm/php.ini
58
- RUN sed -i "s/^memory_limit.*$/memory_limit = $memory_limit /g" /etc/php/8.3/fpm/php.ini
58
+ RUN sed -i "s/^memory_limit.*$/memory_limit = $php_memory_limit /g" /etc/php/8.3/fpm/php.ini
59
59
60
60
# Configure SQLite
61
61
RUN echo ".headers on" > /root/.sqliterc
Original file line number Diff line number Diff line change @@ -27,6 +27,10 @@ if [ ! -z "$MAX_UPLOAD_SIZE" ];then
27
27
sed -i " s/^post_max_size.*$/post_max_size = ${MAX_UPLOAD_SIZE} /g" /etc/php/8.3/fpm/php.ini
28
28
fi
29
29
30
+ if [ ! -z " $PHP_MEMORY_LIMIT " ]; then
31
+ sed -i " s/^memory_limit.*$/memory_limit = ${PHP_MEMORY_LIMIT} /g" /etc/php/8.3/fpm/php.ini
32
+ fi
33
+
30
34
# Start services
31
35
if [ -f " /etc/init.d/syslog-ng" ]; then
32
36
/usr/sbin/service syslog-ng start
You can’t perform that action at this time.
0 commit comments