From 024100d97a3a834dc7e78401781bf108ad59627c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Villard?= Date: Tue, 19 Mar 2019 16:18:11 +0100 Subject: [PATCH] remove warning intl --- Dockerfile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index b33f174..f282f55 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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