A Docker image created on top of php-fpm 8.0 official image running on Alpine 3.16. It is a multi-environment/multi-purpose image that has several PHP extensions installed, such as MongoDB and Xdebug for example.
The final size of the images is considerably small if you take into account the content of each image:
scaffoldeducation/php8:fpm-dev 277MB
scaffoldeducation/php8:fpm-prod 277MB
scaffoldeducation/php8:nginx-fpm-dev 321MB
scaffoldeducation/php8:nginx-fpm-prod 321MB
scaffoldeducation/php8:quality 341MB
Based on kooldev/php docker image from Firework Web
Summary
FROM scaffoldeducation/php8:fpm-dev
FROM scaffoldeducation/php8:fpm-prod
FROM scaffoldeducation/php8:nginx-fpm-dev
FROM scaffoldeducation/php8:nginx-fpm-prod
FROM scaffoldeducation/php8:quality| Tag | Description |
|---|---|
fpm-dev |
it has a lot of extensions installed, but not opcache |
fpm-prod |
it has everything from fpm-dev except xdebug and it includes opcache |
nginx-fpm-dev |
based on fpm-dev, it has nginx installed with SSL support |
nginx-fpm-prod |
same above but based on fpm-prod |
quality |
it descends from fpm-dev too but its main purpose is to run code quality tools |
- Alpine Linux
3.16 - php-fpm
8.0.27 - nginx
1.22.1
- dockerize
0.7.0 - supervisor
0.6.3 - composer
2
-
dependencies:
bashfreetypeghostscriptgifsicleicuimagemagickjpegoptimlesslibjpeg-turbolibldaplibpnglibpqlibzip-devopenssh-clientoptipngpngquantprocpsshadowsu-exec -
build-dependencies:
freetype-devicu-devimagemagick-devlibedit-devlibjpeg-turbo-devlibpng-devlibxml2-devlinux-headersoniguruma-devopenldap-devpostgresql-dev
mysqlimongodbredisxdebugbcmathcalendarexifgdimagickintlldapmbstringopcachepcntlpdopdo_mysqlpdo_pgsqlsoapsocketsxmlzip
h5bp3.3.0for nginx performance and security
phan5.4.2phpcpd6.0.3phpcs3.7.2php-cs-fixer3.40.0phpmd2.14.1phpstan1.10.45phpunit9.6.13
php --ri imagick # 3.7.0
php --ri mongodb # 1.17.0
php --ri pcov # 1.0.11
php --ri redis # 6.0.2
php --ri xdebug # 3.2.2- Allow customize versions of PECL extensions
- Write tests for SSL support in nginx
