Commit 39e171f7 authored by Guy Thouret's avatar Guy Thouret

(fix) Reduce build time by replacing docker-php-ext-enable command for opcache - #665

1 merge request!376WIP: Upgrade to PHP 7.3
Pipeline #90148607 running with stages
......@@ -5,10 +5,9 @@ ADD --chown=www-data . /var/www/Minds/engine
RUN rm -f /var/www/Minds/engine/settings.php \
&& mkdir --parents --mode=0777 /tmp/minds-cache/ \
&& mkdir --parents --mode=0777 /data/ \
&& docker-php-ext-enable opcache
&& echo 'zend_extension=opcache.so' > /usr/local/etc/php/conf.d/opcache.ini
COPY containers/php-fpm/pull-secrets.sh pull-secrets.sh
COPY containers/php-fpm/php.ini /usr/local/etc/php/
COPY containers/php-fpm/opcache.ini /usr/local/etc/php/conf.d/opcache-recommended.ini
COPY containers/php-fpm/apcu.ini /usr/local/etc/php/conf.d/docker-php-ext-apcu.ini
......
FROM minds/php:7.3
RUN docker-php-ext-enable opcache
# Additional folders
RUN mkdir --parents --mode=0777 /tmp/minds-cache/ \
RUN echo 'zend_extension=opcache.so' > /usr/local/etc/php/conf.d/opcache.ini \
&& mkdir --parents --mode=0777 /tmp/minds-cache/ \
&& mkdir --parents --mode=0777 /data/
# Copy config
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment