Add php redis & apcu rules

This commit is contained in:
Glenn Y. Rolland 2021-01-24 00:32:22 +01:00
parent a90a4826a9
commit ea9908731b

View file

@ -7,9 +7,22 @@
# FROM nextcloud:20.0.0-apache # FROM nextcloud:20.0.0-apache
FROM nextcloud:20.0.5-apache FROM nextcloud:20.0.5-apache
RUN apt-get update \ ## Enable REDIS extension
&& apt-get install -y php-apcu php-redis \ RUN pecl channel-update pecl.php.net \
&& apt-get clean && sh -c "yes '' | pecl install -o -f redis" \
&& rm -rf /tmp/pear \
&& rm -f /usr/local/etc/php/glenux-redis.ini \
&& echo "extension=redis.so" >> /usr/local/etc/php/glenux-redis.ini \
&& docker-php-ext-enable redis
## Enable APCU extension
RUN pecl channel-update pecl.php.net \
&& pecl install apcu-${APCU_VERSION} \
&& rm -f /usr/local/etc/php/glenux-apcu.ini \
&& echo "extension=apcu.so" >> /usr/local/etc/php/glenux-apcu.ini \
&& echo "apc.enable_cli=1" >> /usr/local/etc/php/glenux-apcu.ini \
&& echo "apc.enable=1" >> /usr/local/etc/php/glenux-apcu.ini \
&& docker-php-ext-enable apcu
# apt-get install -q -y cron && \ # apt-get install -q -y cron && \
# apt-get clean # apt-get clean