Skip to content

Commit 74c1728

Browse files
author
Hauke Ingwersen
committed
Added max execution time to environment viarables
1 parent e8ad7fc commit 74c1728

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ ENV PHP_OPCACHE_VALIDATE_TIMESTAMPS="0" \
44
PHP_OPCACHE_MAX_ACCELERATED_FILES="10000" \
55
PHP_OPCACHE_MEMORY_CONSUMPTION="192" \
66
PHP_OPCACHE_MAX_WASTED_PERCENTAGE="10" \
7-
PHP_MEMORY_LIMIT="512M"
7+
PHP_MEMORY_LIMIT="512M"\
8+
PHP_MAX_EXECUTION_TIME="60"
89

910
RUN apk info \
1011
&& echo @edge http://nl.alpinelinux.org/alpine/edge/community >> /etc/apk/repositories \

usr/local/etc/php/php.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
; Resource Limits ;
55
;;;;;;;;;;;;;;;;;;;
66

7-
max_execution_time = 60
7+
max_execution_time = ${PHP_MAX_EXECUTION_TIME}
88
max_input_time = 60
99
memory_limit = ${PHP_MEMORY_LIMIT}
1010

0 commit comments

Comments
 (0)