Sign inSign up

scaffoldeducation/php

By scaffoldeducation

•Updated over 1 year ago

Docker image with php-fpm running on Alpine Linux with extensions installed and support for JPG, PNG

Image
Developer tools
Web servers
Operating systems
0

7.6K

scaffoldeducation/php repository overview

⁠Scaffold Education PHP


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.



⁠Usage

FROM scaffoldeducation/php:latest
FROM scaffoldeducation/php:<TAG>

Notice that scaffoldeducation/php:latest will generate the same image as scaffoldeducation/php:<LATEST_MAJOR>-prod tag.


⁠Tags



  • latest, 8, 8-prod, 8.2, 8.2-prod, 8.2.26-prod
  • 8.2-dev, 8.2.26-dev
  • 8.1, 8.1-prod, 8.1.31-prod
  • 8.1-dev, 8.1.31-dev
  • 8.0, 8.0-prod, 8.0.30-prod
  • 8.0-dev, 8.0.30-dev

Warning: 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.


⁠Contents


⁠Features
  • Supports JPG, PNG and WebP image formats
  • Xdebug for debugging on dev environment
  • Support for MongoDB and Redis

⁠Core
  • Alpine Linux
  • php
  • composer

⁠Libs
  • 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
    

⁠PHP Extensions
  • mysqli
  • mongodb
  • redis
  • xdebug (only dev)
  • bcmath
  • calendar
  • exif
  • gd
  • imagick
  • intl
  • ldap
  • mbstring
  • opcache (only prod)
  • pcntl
  • pdo
  • pdo_mysql
  • soap
  • sockets
  • xml
  • zip

⁠Quality Tools
  • phan 5.4.2
  • phpcpd 6.0.3
  • phpcs 3.7.2
  • php-cs-fixer 3.40.0
  • phpmd 2.14.1
  • phpstan 1.10.45
  • phpunit 9.6.13

⁠Development

To 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.


⁠Vulnerabilities

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)

Tag summary

Content type

Image

Digest

sha256:616d300e5…

Size

97.1 MB

Last updated

over 1 year ago

docker pull scaffoldeducation/php