title: Enable APCU CLI on docker php 7.3
body: <p>I'm trying to enable apcu cli on my docker container in order to run my test.
  This is my docker file, I use :</p>
  
  <ul>
  <li>basic php image</li>
  <li>install composer</li>
  <li>install xdebug</li>
  <li>install more docker libs</li>
  <li>install apcu</li>
  </ul>
  
  <p>When I try to run my test inside this docker, it fails due to apcu error. However, in prod the apcu works well because it is enabled but the test needs to have enabled the cli.</p>
  
  <pre><code>FROM php:7.3-cli
  
  ARG APCU_VERSION=5.1.11
  
  RUN apt-get update  &amp;&amp; apt-get -y install git zip libzip-dev wget \
  zlib1g-dev unzip libpq-dev git-core libmcrypt-dev vim libfcgi0ldbl gnupg \
  libfreetype6-dev libjpeg62-turbo-dev libpng-dev libicu-dev
  
  #INSTALL COMPOSER
  RUN echo "memory_limit = -1" &gt; /usr/local/etc/php/conf.d/memory_limit.ini
  RUN curl -sS http://getcomposer.org/installer | php -- --filename=composer &amp;&amp; chmod a+x composer  &amp;&amp; mv composer /usr/local/bin/composer
  RUN echo 'export PATH=~/.composer/vendor/bin:$PATH' &gt;&gt; ~/.bashrc
  RUN composer global require hirak/prestissimo
  
  #ENABLE DOCKER LIBS
  RUN docker-php-ext-install zip pdo pdo_pgsql pgsql mbstring opcache -j$(nproc) gd
  RUN docker-php-ext-configure intl &amp;&amp; docker-php-ext-install intl
  RUN docker-php-ext-configure opcache --enable-opcache
  RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/
  
  #INSTALL XDEBUG
  RUN pecl install xdebug-2.7.0RC1 &amp;&amp; docker-php-ext-enable xdebug
  #XDEBUG
  
  #INSTALL APCU
  RUN pecl install apcu-${APCU_VERSION} &amp;&amp; docker-php-ext-enable apcu
  RUN echo "extension=apcu.so" &gt; /usr/local/etc/php/php.ini
  RUN echo "apc.enable_cli=1" &gt; /usr/local/etc/php/php.ini
  RUN echo "apc.enable=1" &gt; /usr/local/etc/php/php.ini
  #APCU
  
  RUN php --ini
  RUN php --info | grep apc
  
  #MAKE tmp WRITABLE
  RUN chmod 777 -R /tmp &amp;&amp; chmod o+t -R /tmp
  </code></pre>
  
  <p>But at the end when I print php info the result is :</p>
  
  <pre><code>Additional .ini files parsed =&gt; /usr/local/etc/php/conf.d/docker-php-ext-apcu.ini,
  apcu
  apc.coredump_unmap =&gt; Off =&gt; Off
  apc.enable_cli =&gt; Off =&gt; Off
  apc.enabled =&gt; On =&gt; On
  apc.entries_hint =&gt; 4096 =&gt; 4096
  apc.gc_ttl =&gt; 3600 =&gt; 3600
  apc.mmap_file_mask =&gt; no value =&gt; no value
  apc.preload_path =&gt; no value =&gt; no value
  apc.serializer =&gt; php =&gt; php
  apc.shm_segments =&gt; 1 =&gt; 1
  apc.shm_size =&gt; 32M =&gt; 32M
  apc.slam_defense =&gt; On =&gt; On
  apc.smart =&gt; 0 =&gt; 0
  apc.ttl =&gt; 0 =&gt; 0
  apc.use_request_time =&gt; On =&gt; On
  apc.writable =&gt; /tmp =&gt; /tmp
  </code></pre>
  
  <p>Thank you for your help.</p>
  
  <p>Regards</p>