Why don’t use a php:8.X-apache image for your project? I think it’s a better practice and be simpler for devs and maintenances