Browse Source

APCu backward compatibility with APC fix

master
merorafael 9 years ago
parent
commit
f8bbc6b150
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      7.0/Dockerfile

+ 4
- 2
7.0/Dockerfile View File

@ -51,7 +51,6 @@ RUN curl -sS https://getcomposer.org/installer | php -- \
RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \ 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 \ && echo 'instantclient,/opt/oracle/instantclient_12_1/' | pecl install oci8 \
&& pecl install apcu \ && pecl install apcu \
&& pecl install apcu_bc-beta \
&& git clone https://github.com/phpredis/phpredis /usr/src/php/ext/redis \ && git clone https://github.com/phpredis/phpredis /usr/src/php/ext/redis \
&& cd /usr/src/php/ext/redis && git checkout -b php7 origin/php7 \ && cd /usr/src/php/ext/redis && git checkout -b php7 origin/php7 \
&& docker-php-ext-configure redis \ && docker-php-ext-configure redis \
@ -81,9 +80,12 @@ RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-di
&& docker-php-ext-enable \ && docker-php-ext-enable \
oci8 \ oci8 \
apcu \ apcu \
apc \
opcache opcache
# Install and enable APCu backwards
RUN pecl install apcu_bc-beta \
&& echo 'extension=apc.so' >> /usr/local/etc/php/conf.d/docker-php-ext-apcu.ini
# Clean repository # Clean repository
RUN apt-get clean \ RUN apt-get clean \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*

Loading…
Cancel
Save