Hi everyone,
I’m trying to deploy an application using my own Dockerfile on Fly.io, but I keep running into issues after deployment. The app builds successfully, but the UI breaks or doesn’t load correctly once deployed.
Here’s what I’m trying to confirm with someone experienced:
-
What is the correct, reliable process to deploy an app directly from a Dockerfile on Fly.io?
-
What are the exact steps to ensure
internal_portinfly.tomlmatches the port exposed by the Dockerfile? -
Should I always run
fly launch --no-deployfirst when deploying from a Dockerfile? -
Is there anything special I should set in Fly secrets when the app requires environment variables?
-
Is
fly deploy --local-onlypreferred when using custom Dockerfiles? -
Are there common traps (esp. with ports, ENTRYPOINT/CMD, or auto-start/auto-stop machines) that cause the UI to fail after deployment?
If someone has a clean example of a correct fly.toml + Dockerfile setup, that would help a lot.
Thanks in advance.