fly-apps / dockerfile-laravel

19 stars 1 forks source link

Detect PHP version and use supported version in generated Dockerfile #33

Open KTanAug21 opened 5 months ago

KTanAug21 commented 5 months ago

What: We can detect the PHP version. And include that version(or the nearest supported version) as the PHP version declared in the Dockerfile generated.

Similar to this snippet we have in the Fly Laravel Scanner

Why: This will help in providing a closer environment a local Laravel project has with its deployed Laravel project in Fly.io.