fix: Double opcache memory_consumption size
Some checks reported errors
continuous-integration/drone/push Build was killed
Some checks reported errors
continuous-integration/drone/push Build was killed
This commit is contained in:
parent
209621cb89
commit
ad066ee9b0
1 changed files with 7 additions and 4 deletions
11
Dockerfile
11
Dockerfile
|
@ -64,16 +64,19 @@ RUN sed -i'' 's|.*<policy domain="coder".*"PDF".*|<policy domain="coder" rights=
|
||||||
##
|
##
|
||||||
ENV PHP_MEMORY_LIMIT=1024M
|
ENV PHP_MEMORY_LIMIT=1024M
|
||||||
ENV PHP_UPLOAD_LIMIT=1800M
|
ENV PHP_UPLOAD_LIMIT=1800M
|
||||||
RUN echo 'memory_limit=1024M' \
|
RUN echo '[opcache]' > /usr/local/etc/php/conf.d/opcache.ini \
|
||||||
> /usr/local/etc/php/conf.d/memory-limit.ini \
|
&& echo 'opcache.memory_consumption=256' >> /usr/local/etc/php/conf.d/opcache.ini \
|
||||||
&& echo '*/5 * * * * php -d memory_limit=1024M -f /var/www/html/cron.php' \
|
&& echo '[PHP]' > /usr/local/etc/php/conf.d/memory-limit.ini \
|
||||||
> /var/spool/cron/crontabs/www-data
|
&& echo 'memory_limit=1024M' >> /usr/local/etc/php/conf.d/memory-limit.ini
|
||||||
|
|
||||||
##
|
##
|
||||||
## CRON SETUP
|
## CRON SETUP
|
||||||
##
|
##
|
||||||
## Based on https://github.com/nextcloud/docker/tree/master/.examples/dockerfiles/cron/apache
|
## Based on https://github.com/nextcloud/docker/tree/master/.examples/dockerfiles/cron/apache
|
||||||
##
|
##
|
||||||
|
RUN echo '*/5 * * * * php -d memory_limit=1024M -f /var/www/html/cron.php' \
|
||||||
|
> /var/spool/cron/crontabs/www-data
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y \
|
RUN apt-get update && apt-get install -y \
|
||||||
supervisor \
|
supervisor \
|
||||||
&& rm -rf /var/lib/apt/lists/* \
|
&& rm -rf /var/lib/apt/lists/* \
|
||||||
|
|
Loading…
Reference in a new issue