{"id":50974887,"url":"https://github.com/eznix86/laravel-optimized-dockerfiles","last_synced_at":"2026-06-19T06:33:02.869Z","repository":{"id":332932494,"uuid":"1135588244","full_name":"eznix86/laravel-optimized-dockerfiles","owner":"eznix86","description":"Get secure and optimized containers","archived":false,"fork":false,"pushed_at":"2026-01-16T10:16:50.000Z","size":9,"stargazers_count":4,"open_issues_count":2,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-16T23:56:29.000Z","etag":null,"topics":["container","optimized","wolfi-php"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eznix86.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-01-16T10:03:48.000Z","updated_at":"2026-01-16T23:33:10.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/eznix86/laravel-optimized-dockerfiles","commit_stats":null,"previous_names":["eznix86/laravel-optimized-dockerfiles"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/eznix86/laravel-optimized-dockerfiles","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eznix86%2Flaravel-optimized-dockerfiles","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eznix86%2Flaravel-optimized-dockerfiles/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eznix86%2Flaravel-optimized-dockerfiles/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eznix86%2Flaravel-optimized-dockerfiles/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eznix86","download_url":"https://codeload.github.com/eznix86/laravel-optimized-dockerfiles/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eznix86%2Flaravel-optimized-dockerfiles/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34520431,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-19T02:00:06.005Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["container","optimized","wolfi-php"],"created_at":"2026-06-19T06:33:02.578Z","updated_at":"2026-06-19T06:33:02.859Z","avatar_url":"https://github.com/eznix86.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel Dockerfiles\n\nOptimized and secure Docker images for Laravel applications with SQLite. Two variants designed for different deployment scenarios, both built on [Wolfi PHP](https://github.com/shyim/wolfi-php) for enterprise-grade security.\n\n## Overview\n\nThis repository provides production-ready Docker images built on **Wolfi Linux**, an independent Linux distribution designed from the ground up for security. These images deliver maximum performance without compromising on safety.\n\n| Variant | Use Case | Image Size | Idle Memory |\n|---------|----------|------------|-------------|\n| **PHP-FPM** | Lightweight homelab deployments | ~180 MB | ~17 MB |\n| **FrankenPHP** | High-performance production | ~230 MB | ~200 MB |\n\n### Core Design Goals\n\n**Performance**\n- Multi-stage builds for minimal image size\n- Pre-configured OPcache and worker optimization\n- Frontend assets compiled during build time\n\n**Security**\n- Built on [Wolfi PHP](https://github.com/shyim/wolfi-php)\n- Minimal attack surface with stripped-down packages\n\n## Variants\n\n### PHP-FPM\n\nLightweight image with PHP-FPM and Nginx. Ideal for homelab environments where resources are constrained and memory efficiency matters more than maximum performance.\n\n**Key Features:**\n- Multi-stage build with frontend compilation\n- Pre-configured PHP-FPM pool settings\n- OPcache enabled for optimal performance\n- SQLite database support out of the box\n- [Wolfi PHP](https://github.com/shyim/wolfi-php) security foundation\n\n### FrankenPHP\n\nModern PHP application server built on Caddy. Designed for high-performance production deployments where request speed is critical. Uses Laravel Octane for persistent worker processes.\n\n**Key Features:**\n- Laravel Octane workers for persistent execution\n- Pre-warmed OPcache\n- [Wolfi PHP](https://github.com/shyim/wolfi-php) security foundation\n\n## Configuration\n\n### Environment Variables\n\nBoth images share the same core configuration:\n\n| Variable | Default | Description |\n|----------|---------|-------------|\n| `APP_ENV` | `production` | Application environment |\n| `APP_DEBUG` | `false` | Debug mode toggle |\n| `LOG_CHANNEL` | `stderr` | Log output destination |\n| `DB_CONNECTION` | `sqlite` | Database driver |\n| `DB_DATABASE` | `/data/database.sqlite` | SQLite database path |\n\n### FrankenPHP Additional Variables\n\n| Variable | Default | Description |\n|----------|---------|-------------|\n| `OCTANE_WORKERS` | `2` | Number of Octane worker processes |\n\n### Volumes\n\nMount the following volumes for persistence:\n\n| Path | Purpose |\n|------|---------|\n| `/data` | SQLite database storage |\n\n## Performance Comparison\n\n### Resource Usage\n\n| Metric | PHP-FPM | FrankenPHP | Difference |\n|--------|---------|------------|------------|\n| Image Size | ~180 MB | ~230 MB | +50 MB |\n| Idle Memory | ~17 MB | ~200 MB | +183 MB |\n| Startup Time | Fast | Moderate | - |\n| Worker Model | On demand process pool | Persistent workers | - |\n| Best For | Homelab | Production | - |\n\n### When to Use Each\n\n**Choose PHP-FPM when:**\n- Running on limited hardware (Raspberry Pi, NAS, old servers)\n- Memory efficiency is critical\n\n**Choose FrankenPHP when:**\n- High traffic applications\n\n## Security\n\nThese images are built on [Wolfi Linux](https://github.com/shyim/wolfi-php), an independent Linux distribution designed specifically for security in cloud-native environments.\n\n\n## License\n\nMIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feznix86%2Flaravel-optimized-dockerfiles","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feznix86%2Flaravel-optimized-dockerfiles","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feznix86%2Flaravel-optimized-dockerfiles/lists"}