Add php redis & apcu rules
This commit is contained in:
parent
a90a4826a9
commit
ea9908731b
1 changed files with 16 additions and 3 deletions
19
Dockerfile
19
Dockerfile
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue