Ideally, when creating a Docker image for your application, you'd custom-tailor the Dockerfile to include only the extensions you need. I found myself doing that a lot. It takes time and at a scale of many containers per host, makes it impossible to reuse the image, because it's not essentially shared among containers. It also takes almost half an hour to build such an image.
Universal PHP-FPM Docker image with almost everything you might need to run typical and more exotic PHP apps. It's commonly used by me for Laravel apps.
It's a great idea to use this image instead of: FROM php:8.2-fpm
.
Use as: FROM ghcr.io/dspeichert/php-bloated/php-8.2:master
.
More versions might be available in future.
Check out the amazing tool that makes it possible to build an image with so many different PHP extensions so easily.