Sign inSign up

mdayo/php

By mdayo

•Updated 11 months ago

PHP FPM Alpine with Composer & common extensions, ready for production.

Image
Developer tools
0

204

mdayo/php repository overview

⁠PHP FPM Alpine Multi-Stage Docker Image

This Docker image provides a production-ready PHP FPM environment built on Alpine Linux, optimized for web applications with Composer support.

⁠Features:

  • Multi-stage build for smaller, cleaner production images:
    • Build stage: installs PHP build tools, compiles extensions, and sets up Composer.
    • Production stage: includes only runtime dependencies and compiled PHP extensions.
  • Pre-installed PHP extensions: pdo, pdo_mysql, mbstring, zip, sockets, exif, pcntl, intl, bcmath, gd, msgpack.
  • Composer installed for dependency management.
  • Optimized for PHP-FPM deployments.
  • Exposes port 9000 for FPM connections.
  • Permission-ready: /var/www/html owned by www-data with proper access.

⁠Usage:

Set your working directory to /var/www/html and run php-fpm. Compatible with Docker Compose for web applications.

Tag summary

Content type

Image

Digest

sha256:9da897266…

Size

42.2 MB

Last updated

11 months ago

docker pull mdayo/php:8.2-fpm-alpine