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
1 changed files with 16 additions and 3 deletions

View File

@ -7,9 +7,22 @@
# FROM nextcloud:20.0.0-apache
FROM nextcloud:20.0.5-apache
RUN apt-get update \
&& apt-get install -y php-apcu php-redis \
&& apt-get clean
## Enable REDIS extension
RUN pecl channel-update pecl.php.net \
&& 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 clean