Merge pull request #46 from jevillard/fix-warning-intl

Removing the warning for the PHP Intl extension
This commit is contained in:
Kévin Dunglas 2019-04-27 19:05:36 +01:00 committed by GitHub
commit 4e521cac9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,13 +43,20 @@ RUN set -eux \
$PHPIZE_DEPS \
icu-dev \
zlib-dev \
&& docker-php-ext-install \
&& docker-php-ext-install -j$(nproc) \
intl \
zip \
&& pecl install \
apcu-${APCU_VERSION} \
&& docker-php-ext-enable --ini-name 20-apcu.ini apcu \
&& docker-php-ext-enable --ini-name 05-opcache.ini opcache \
&& runDeps="$( \
scanelf --needed --nobanner --format '%n#p' --recursive /usr/local/lib/php/extensions \
| tr ',' '\n' \
| sort -u \
| awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' \
)" \
&& apk add --no-cache --virtual .api-phpexts-rundeps $runDeps \
&& apk del .build-deps
RUN ln -s $PHP_INI_DIR/php.ini-production $PHP_INI_DIR/php.ini