A lightweight PHP-FPM Docker image based on the official php:fpm-alpine image.
-
🕑 Timezone support
Simply set the timezone by defining theTZenvironment variable, e.g.:TZ=Europe/Prague
-
📦 Pre-installed PHP extensions
Commonly needed extensions are already installed:curlgdmysqliopcachepdo,pdo_mysqlgettextexifsocketszip
- The
latestand8tags now point to PHP 8.4. - The
latesttag was moved from 7.4 to 8.2, since PHP 7.4 has reached end of life. - If you still need PHP 7.4, please use the
7or7.4tag explicitly.
docker run -e TZ=Europe/Prague svasek/php-fpm:latestKeep your docker-compose.yml or CI/CD pipeline up to date with the desired PHP version tag to avoid unexpected upgrades.