fix: php 5.6 APCU
This commit is contained in:
parent
94efcf7a54
commit
f016880fa2
|
@ -1351,9 +1351,11 @@ RUN if [ $INSTALL_PHALCON = true ]; then \
|
||||||
ARG INSTALL_APCU=false
|
ARG INSTALL_APCU=false
|
||||||
|
|
||||||
RUN if [ ${INSTALL_APCU} = true ]; then \
|
RUN if [ ${INSTALL_APCU} = true ]; then \
|
||||||
apt-get update -yqq \
|
if [ $(php -r "echo PHP_MAJOR_VERSION;") = "5" ]; then \
|
||||||
&& pecl channel-update pecl.php.net; \
|
pecl install apcu-4.0.11; \
|
||||||
pecl install apcu; \
|
else \
|
||||||
|
pecl install apcu; \
|
||||||
|
fi && \
|
||||||
echo "extension=apcu.so" >> /etc/php/${LARADOCK_PHP_VERSION}/mods-available/apcu.ini; \
|
echo "extension=apcu.so" >> /etc/php/${LARADOCK_PHP_VERSION}/mods-available/apcu.ini; \
|
||||||
ln -s /etc/php/${LARADOCK_PHP_VERSION}/mods-available/apcu.ini /etc/php/${LARADOCK_PHP_VERSION}/cli/conf.d/50-apcu.ini; \
|
ln -s /etc/php/${LARADOCK_PHP_VERSION}/mods-available/apcu.ini /etc/php/${LARADOCK_PHP_VERSION}/cli/conf.d/50-apcu.ini; \
|
||||||
php -m | grep -q 'apcu' \
|
php -m | grep -q 'apcu' \
|
||||||
|
|
Loading…
Reference in New Issue