Skip to content

Commit 6f2345c

Browse files
authored
Use PHP_OPCACHE_MEMORY_CONSUMTION in Dockerfile-alpine.template
1 parent 6791748 commit 6f2345c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Dockerfile-alpine.template

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,12 @@ RUN set -ex; \
7979
# see https://docs.nextcloud.com/server/latest/admin_manual/installation/server_tuning.html#enable-php-opcache
8080
ENV PHP_MEMORY_LIMIT 512M
8181
ENV PHP_UPLOAD_LIMIT 512M
82+
ENV PHP_OPCACHE_MEMORY_CONSUMTION 128
8283
RUN { \
8384
echo 'opcache.enable=1'; \
8485
echo 'opcache.interned_strings_buffer=32'; \
8586
echo 'opcache.max_accelerated_files=10000'; \
86-
echo 'opcache.memory_consumption=128'; \
87+
echo 'opcache.memory_consumption=${PHP_OPCACHE_MEMORY_CONSUMTION}'; \
8788
echo 'opcache.save_comments=1'; \
8889
echo 'opcache.revalidate_freq=60'; \
8990
echo 'opcache.jit=1255'; \

0 commit comments

Comments
 (0)