Containerizing PHP Applications
PHP applications often use a web server or PHP-FPM behind a reverse proxy. Laravel projects also need Composer dependencies, environment configuration, writable framework directories, and a separate persistent database or storage strategy.
Keep build-time dependencies and development tooling out of the production runtime image where practical.