Docker image with php-fpm running on Alpine Linux with extensions installed and support for JPG, PNG
7.6K
Based on kooldev/php docker image
from Firework Web
This is a Docker image created on top of php official image running on Alpine. It is a multi-environment/multi-purpose image that has several PHP extensions installed, such as MongoDB and Xdebug for example.
For complete list of dependencies, see the Contents section.
FROM scaffoldeducation/php:latest
FROM scaffoldeducation/php:<TAG>
Notice that
scaffoldeducation/php:latestwill generate the same image asscaffoldeducation/php:<LATEST_MAJOR>-prodtag.
Source code at
github.com/scaffoldeducation/php
latest, 8, 8-prod, 8.2, 8.2-prod, 8.2.26-prod8.2-dev, 8.2.26-dev8.1, 8.1-prod, 8.1.31-prod8.1-dev, 8.1.31-dev8.0, 8.0-prod, 8.0.30-prod8.0-dev, 8.0.30-devWarning: It's not recommended to use 8.0 tags due to security vulnerabilities.
Note: We'll add PHP 8.3 and 8.4 in future releases.
system
bash
freetype
gettext
ghostscript
gifsicle
icu
imagemagick
jpegoptim
less
libjpeg-turbo
libldap
libpng
libpq
libzip-dev
openssh-client
optipng
pngquant
procps
shadow
su-exec
dependencies
freetype-dev
icu-dev
imagemagick-dev
libedit-dev
libjpeg-turbo-dev
libpng-dev
libwebp-dev
libwebp-tools
libxml2-dev
linux-headers
oniguruma-dev
openldap-dev
mysqlimongodbredisxdebug (only dev)bcmathcalendarexifgdimagickintlldapmbstringopcache (only prod)pcntlpdopdo_mysqlsoapsocketsxmlzipphan 5.4.2phpcpd 6.0.3phpcs 3.7.2php-cs-fixer 3.40.0phpmd 2.14.1phpstan 1.10.45phpunit 9.6.13To include new features or fix some bugs, you can create a PR of your changes to this repository. You can test your changes locally with:
tests/pipeline.sh
in the root of the project. It'll run many build and test steps for each version. You can also run these scripts manually and independently. The pipeline script creates logs in logs/pipeline.log file.
The images are checked for vulnerabilities with trivy:
trivy image scaffoldeducation/php:8.2.27-prod --scanners vuln
2025-01-10T18:58:20-03:00 INFO [vuln] Vulnerability scanning is enabled
2025-01-10T18:58:20-03:00 INFO Detected OS family="alpine" version="3.21.2"
2025-01-10T18:58:20-03:00 WARN This OS version is not on the EOL list family="alpine" version="3.21"
2025-01-10T18:58:20-03:00 INFO [alpine] Detecting vulnerabilities... os_version="3.21" repository="3.21" pkg_num=140
2025-01-10T18:58:20-03:00 INFO Number of language-specific files num=0
scaffoldeducation/php:8.2.27-prod (alpine 3.21.2)
Total: 0 (UNKNOWN: 0, LOW: 0, MEDIUM: 0, HIGH: 0, CRITICAL: 0)
Content type
Image
Digest
sha256:616d300e5…
Size
97.1 MB
Last updated
over 1 year ago
docker pull scaffoldeducation/php