fly-apps / dockerfile-laravel

19 stars 1 forks source link

Support FrankenPHP to embed Laravel app into a standalone binary #35

Closed KTanAug21 closed 6 months ago

KTanAug21 commented 6 months ago

What: Support FrankenPHP to embed a Laravel application into a standalone binary that can run the application.

Why:

How:

  1. Revise the Dockerfile generated to:
    • include a new build stage that will use FrankenPHP's Docker-based builder to embed the Laravel app into a binary
    • run the generated binary and set the port to 8080 to allow the app to deploy successfully in Fly.io