All-purpose PHP-FPM 7.4 Docker image that comes with the most popular extensions.
Don't worry about building complex Docker images for your Laravel, Lumen or other PHP 7.4+ applications. Just use this lightweight and convenient image.
$ docker pull otherguy/php7-fpm:7.4
Base your Docker image on otherguy/php7-fpm:7.4, add your project files and you're ready to go!
# Dockerfile
FROM otherguy/php7-fpm:7.4
COPY --chown=www-data:www-data . /srvIf you want to change the PHP configuration or overwrite some defaults, simply create your own
configuration file, have the filename start with a z and add it to the image.
# zz-custom.ini
post_max_size       = 100M
upload_max_filesize = 100M# Dockerfile
...
COPY zz-custom.ini /usr/local/etc/php/conf.d/
...It's simple to add your own extensions to the image!
# Dockerfile
...
RUN apk add --no-cache --virtual .build-deps $PHPIZE_DEPS \
 && pecl install mongodb \
 && docker-php-ext-enable mongodb
...This is a docker image for an all-purpose PHP-FPM (PHP Version 7.4) container.  It is based on the 7.4-fpm-alpine
tag of the official PHP Docker image. Patch version upgrades
are therefore done automatically on build (e.g. 7.4.11 to 7.4.12) but for minor version upgrades
(e.g. 7.3.x to 7.4.x), a new Dockerfile should be created and tagged appropriately.
There are some new features and deprecated modules that made changes to the Dockerfile necessary:
mcrypthas been deprecated in 7.1 and removed in 7.2 in favor of OpenSSL- PHP 7.4 includes many of the extensions that were previously installed manually, so only 
gd,intl,opcacheand PDO are installed through this image 
The installed extensions are enough for Laravel 8 projects as long as the project is using either PostgreSQL, MySQL or SQLite. If you need other database drivers/extensions, please fork this image and submit a pull requests, or simply install it in your own image.
This is the full list of extensions available to PHP in this image:
ctypecurldatedomfileinfofilterftpgdhashiconvintljsonlibxmlmbstringmysqlimysqlndopensslpcrePDOpdo_mysqlpdo_pgsqlpdo_sqlitePharposixreadlineReflectionsessionSimpleXMLsodiumSPLsqlite3standardtokenizerxmlxmlreaderxmlwriterZend OPcachezipzlib
In order to build this image yourself, simply run the following command:
$ docker build -t otherguy/php7-fpm:7.4 .
Pull Requests are more than welcome!