I use Alpine php image in docker, for my work I need the intl library, but its installation as an extension for php takes too long, long it is ~30 minutes for 2 images through the pipeline on version (23.*.*) of docker and ~ 17 minutes on the version (25.*.*) and for me it's just overhead, I don't understand the reason for such a long build. Here is an example of my Dockerfile:
FROM php:8.2-fpm-alpine
ADD --chmod=0755 https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
RUN install-php-extensions intl
Or if you want an older version:
FROM php:8.2-fpm-alpine
RUN apk add --no-cache icu-dev icu-data-full \
&& docker-php-ext-install intl
And if you look at the size of the packages pulled by the apk, they don't weigh that much to install such a colossal amount of time:
icu-dev - https://pkgs.alpinelinux.org/package/edge/main/x86_64/icu-dev
icu-data-full - https://pkgs.alpinelinux.org/package/edge/main/x86_64/icu-data-full
Who has encountered this problem or knows how to solve/help the script to work more smoothly at least once again in x2, because it looks as strange as possible and it should not be like this, maybe it is possible to somehow compile the files and add them directly to the php extension, I will be glad and love suggestions.
P.S. - On a local machine, it will take an average of ~5 minutes, which is also impractically long