So here I am, minding my own business to launch my app to Fly.io. I use this TOML configuration to deploy my app:
# fly.toml file generated for monika on 2022-01-25T16:13:36+07:00 app = "app" kill_signal = "SIGINT" kill_timeout = 5 processes =  [build] dockerfile = "Dockerfile.flyio" [build.args] KEY = "<REDACTED>" URL = "<REDACTED>" [env] KEY = "<REDACTED>" URL = "<REDACTED>" [experimental] auto_rollback = true
Because I have two Dockerfile: Dockerfile and Dockerfile.flyio. When I deploy using
flyctl launch it says:
❯ flyctl launch An existing fly.toml file was found for app app App is not running, deploy... Deploying app ==> Validating app configuration --> Validating app configuration done Remote builder fly-builder-young-pine-9696 ready ==> Creating build context Error Rel: can't make Dockerfile relative to /home/user/Projects/app
Even though the Dockerfile.flyio is present, it won’t work. Am I doing it wrong?