I optimized the size of a docker image by using php:8.1-fpm-alpine but when I build image, the message show errors


Hi

Its because you clearly copy pasted the debian/ubuntu one, and just changed the commands to “apk”.
alpine uses a completely different package mangement system, you need to figure out what the alpine package name is for the ones its missing

1 Like