From a25e10f176a6a98e9cc2edaf68563c73350ceba7 Mon Sep 17 00:00:00 2001 From: merorafael Date: Thu, 7 Apr 2016 14:44:30 -0300 Subject: [PATCH] APCu backward compatibility with APC fix --- 7.0/Dockerfile | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/7.0/Dockerfile b/7.0/Dockerfile index d8c8c9c..9bc0025 100644 --- a/7.0/Dockerfile +++ b/7.0/Dockerfile @@ -50,8 +50,6 @@ RUN curl -sS https://getcomposer.org/installer | php -- \ # Install PHP extensions RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \ && echo 'instantclient,/opt/oracle/instantclient_12_1/' | pecl install oci8 \ - && pecl install apcu \ - && pecl install apcu_bc-1.0.3 \ && git clone https://github.com/phpredis/phpredis /usr/src/php/ext/redis \ && cd /usr/src/php/ext/redis && git checkout -b php7 origin/php7 \ && docker-php-ext-configure redis \ @@ -80,9 +78,13 @@ RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-di pcntl \ && docker-php-ext-enable \ oci8 \ - apcu \ - opcache \ - && docker-php-ext-enable apc --ini-name 10-docker-php-ext-apc.ini + opcache + +# Install APCu and APC backward compatibility +RUN pecl install apcu \ + && pecl install apcu_bc-1.0.3 \ + && docker-php-ext-enable apcu --ini-name 10-docker-php-ext-apcu.ini \ + && docker-php-ext-enable apc --ini-name 20-docker-php-ext-apc.ini # Clean repository RUN apt-get clean \