Skip to content
Permalink
Browse files

env: Enabled APC/APCu

  • Loading branch information...
tarlepp committed Jul 29, 2019
1 parent 67ff09c commit e851377fee9c6cc0f6b6536ae1789c20c71856f0
Showing with 15 additions and 3 deletions.
  1. +6 −0 Dockerfile
  2. +6 −0 Dockerfile_dev
  3. +3 −3 config/packages/prod/doctrine.yaml
@@ -13,6 +13,12 @@ RUN docker-php-ext-install -j$(nproc) bcmath \
&& docker-php-ext-install opcache \
&& docker-php-ext-install zip

# Install APCu and APC backward compatibility
RUN pecl install apcu \
&& pecl install apcu_bc-1.0.5 \
&& 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

# copy the Composer PHAR from the Composer image into the PHP image
COPY --from=composer /usr/bin/composer /usr/bin/composer

@@ -20,6 +20,12 @@ RUN docker-php-ext-install -j$(nproc) bcmath \
&& pecl install xdebug-2.7.1 \
&& docker-php-ext-enable xdebug

# Install APCu and APC backward compatibility
RUN pecl install apcu \
&& pecl install apcu_bc-1.0.5 \
&& 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

# Copy the Composer PHAR from the Composer image into the PHP image
COPY --from=composer /usr/bin/composer /usr/bin/composer

@@ -1,5 +1,5 @@
doctrine:
orm:
#metadata_cache_driver: apc
#result_cache_driver: apc
#query_cache_driver: apc
metadata_cache_driver: apcu
result_cache_driver: apcu
query_cache_driver: apcu

0 comments on commit e851377

Please sign in to comment.
You can’t perform that action at this time.