This is a customization for laravel, but you could easily copy the files and get the same functionality for your app.
There’s no special integration with the fly CLI, it’s simply a bunch of shell scripts that get executed by setting the dockerfile entrypoint to be the entrypoint script.
You’ll probably need to modify the entrypoint script to use the appropriate directories for your app as the directories specified are for laravel.