Only made changes in the dockerfile.
Running make build ARGS="--build-arg PHP=8.2" would result in an error that made it impossible to run the docker compose build.
=> ERROR [php stage-0 2/9] RUN apk update && apk add zip libzip-dev icu-dev git RUN docker-php-ex 0.9s
------
> [php stage-0 2/9] RUN apk update && apk add zip libzip-dev icu-dev git RUN docker-php-ext-configure zip intl:
0.127 fetch https://dl-cdn.alpinelinux.org/alpine/v3.19/main/aarch64/APKINDEX.tar.gz
0.251 fetch https://dl-cdn.alpinelinux.org/alpine/v3.19/community/aarch64/APKINDEX.tar.gz
0.576 v3.19.0-341-gfaf9f17e39b [https://dl-cdn.alpinelinux.org/alpine/v3.19/main]
0.576 v3.19.0-347-g603bc9299c4 [https://dl-cdn.alpinelinux.org/alpine/v3.19/community]
0.576 OK: 22843 distinct packages available
0.829 ERROR: unable to select packages:
0.829 docker-php-ext-configure (no such package):
0.829 required by: world[docker-php-ext-configure]
0.829 intl (no such package):
0.829 required by: world[intl]
0.829 RUN (no such package):
0.829 required by: world[RUN]
------
failed to solve: process "/bin/sh -c apk update && apk add zip libzip-dev icu-dev git RUN docker-php-ext-configure zip intl" did not complete successfully: exit code: 3
make: *** [build] Error 17
Removed an unnecessary character, that was breaking the build.
Also removed the docker-php-ext-configure and docker-php-ext-enable commands on the file because according to this issuedocker-php-ext-configure should only be used when configuring extension before docker-php-ext-install and this command automatically runs docker-php-ext-enable after building the extension.
Lastly, installed autoconf and build-base because of the error below.
After these changes running the command make build ARGS="--build-arg PHP=8.2" builds the image successfully 👍
What:
Description:
Only made changes in the dockerfile. Running
make build ARGS="--build-arg PHP=8.2"
would result in an error that made it impossible to run thedocker compose build
.docker-php-ext-configure
anddocker-php-ext-enable
commands on the file because according to this issuedocker-php-ext-configure
should only be used when configuring extension beforedocker-php-ext-install
and this command automatically runsdocker-php-ext-enable
after building the extension.autoconf
andbuild-base
because of the error below.After these changes running the command
make build ARGS="--build-arg PHP=8.2"
builds the image successfully 👍