Sign inSign up

wiediiregistry/php

By wiediiregistry

Updated about 2 months ago

Buildkit cache
Image
0

100K+

wiediiregistry/php repository overview

Wiedii Base Docker Images

Optimized PHP base images for Wiedii projects — security-hardened, performance-tuned, and ready for production. Built for Laravel, Symfony, and general PHP applications, available in Production and Development modes.


Available Variants

VariantPurposePort
fpmPHP-FPM + Caddy (general use)8080
laravelPHP-FPM + Caddy (Laravel optimized)8080
symfonyPHP-FPM + Caddy (Symfony optimized)8080
cliCommand Line Interface

PHP versions: 8.5 · 8.4 · 8.3
Base OS: Debian · Alpine
Tag format: php:<version>-<variant>-<debian|alpine>[-dev]
Example: php:8.4.19-fpm-debian, php:8.4.19-symfony-debian, php:8.4.19-symfony-alpine, php:8.4.19-fpm-alpine-dev


Quick Start

# Production — Laravel
FROM wiediiregistry/php:8.5.6-laravel-debian
COPY --chown=app:app . /var/www/html/
RUN composer install --no-dev --optimize-autoloader && php artisan optimize

# Production — Symfony
FROM wiediiregistry/php:8.5.6-symfony-debian
COPY --chown=app:app . /var/www/html/
RUN composer install --no-dev --optimize-autoloader \
    && APP_ENV=prod php bin/console cache:warmup

# Production — PHP General
FROM wiediiregistry/php:8.5.6-fpm-debian
COPY --chown=app:app . /var/www/html/

# Development — Laravel (Xdebug + Composer + Zsh + mise)
FROM wiediiregistry/php:8.5.6-laravel-debian-dev

# CLI Worker
FROM wiediiregistry/php:8.5.6-cli-debian
CMD ["php", "artisan", "queue:work", "--sleep=3", "--tries=3"]

Key Features

  • 🔒 Non-root execution (app user, UID 1001)
  • 📌 SHA256 digest-pinned base images
  • ⚡ OPcache + JIT tracing in production
  • 🐛 Xdebug pre-configured in dev mode (port 9003)
  • 🌐 Caddy with Brotli + zstd + gzip compression
  • 🛡 Security headers + blocked sensitive paths (.env, .git, vendor)
  • 🏗 Multi-stage builds (minimal image size)
  • 🖥 Multi-arch: linux/amd64 + linux/arm64

Development Mode (-dev)

All variants include a -dev image with:

  • Xdebug (port 9003, trigger mode)
  • Composer pre-installed
  • Zsh + Zinit + Starship prompt
  • mise for tool version management
  • git-flow-next, GPG signing, JetBrains Mono Nerd Font
  • sudo enabled for app user

Documentation

Getting Started

Variants (fpm / laravel / symfony / cli)

Tags & Versions

Production Environment

Development Environment

PHP Extensions

Security & Permissions

Full Documentation Index

Docker Hub

Repository


License

UNLICENSED — Internal Wiedii use only.

Tag summary

Content type

Image

Digest

sha256:bb435c7f1

Size

535.5 MB

Last updated

about 2 months ago

docker pull wiediiregistry/php:8.5.8-symfony-alpine-dev-195e1264e5ff