A lightweight PHP-FPM Docker image based on the official php:fpm-alpine
image.
-
🕑 Timezone support
Simply set the timezone by defining theTZ
environment variable, e.g.:TZ=Europe/Prague
-
📦 Pre-installed PHP extensions
Commonly needed extensions are already installed:curl
gd
mysqli
opcache
pdo
,pdo_mysql
gettext
exif
sockets
zip
- The
latest
and8
tags now point to PHP 8.4. - The
latest
tag 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
7
or7.4
tag explicitly.
docker run -e TZ=Europe/Prague svasek/php-fpm:latest
Keep your docker-compose.yml
or CI/CD pipeline up to date with the desired PHP version tag to avoid unexpected upgrades.