Sign inSign up

mallardduck/base-php

By mallardduck

•Updated over 1 year ago

A set of base containers to help with containerizing PHP apps.

Image
0

10K+

mallardduck/base-php repository overview

⁠PHP Docker Images

A set of modern PHP docker images based on Alpine Linux⁠ using official PHP docker images as base.

⁠Available Images

PHP VersionBase Images (CLI/FPM)FPM+CacheFPM+Cache+DatabaseSwoole
8.1✅✅✅✅
8.2✅✅✅✅
⁠What's in each image type?
⁠FPM/CLI base images

The base images come in a CLI or FPM variant for you to use depending on your project needs. Most users should probably use the PHP-FPM one for sites/apps. However the CLI one can be useful for cron jobs.

Both versions of the base image will come with the same PHP extensions. Currently these are:

  • bcmath
  • intl
  • zip
  • exif
  • msgpack
  • igbinary
  • gd
  • json
  • opcache (needs to be enabled)
⁠Cache variant images

These will all be based by the respective PHP version's base FPM image. So these will always be FPM based and include the same extensions listed above. In addition to the expected extensions these include both: redis and memcached extensions.

⁠Database variant images

These are based on the Cache variant for the respective PHP version. This means they include everything in FPM base + cache and some database extensions. Currently, these variants only generate a mysql variant that includes the pdo_mysql extension.

⁠Swoole variant images

These are based on the mysql variant for each respective version. They include all the base image as well as the openswoole extension.

Tag summary

Content type

Image

Digest

sha256:d77b00a77…

Size

184.5 MB

Last updated

over 1 year ago

docker pull mallardduck/base-php:8.2-cli