Persistent Build Failure: "app does not have a Dockerfile or buildpacks configured"

Subject: Persistent Build Failure: “app does not have a Dockerfile or buildpacks configured”

Hello Fly.io Support Team,

I am experiencing a continuous build failure on my application, ‘meyazegim’, which is connected via GitHub.

Command Used:
fly deploy -a meyazegim

Error Received:
Error: failed to fetch an image or build from source: app does not have a Dockerfile or buildpacks configured.

Verification of Configuration:

  1. I have explicitly deleted the Dockerfile from the repository to force the use of Buildpacks.
  2. My fly.toml file explicitly defines the [build] block.

This is the exact content of my fly.toml (from the latest commit):

app = 'meyazegim'
primary_region = 'fra'

[build]
  builder = "heroku/buildpacks:20"

[http_service]
  internal_port = 8080
  force_https = true
  auto_stop_machines = 'stop'
  auto_start_machines = true
  min_machines_running = 0
  processes = ['app']

[[vm]]
  memory = '1gb'
  cpu_kind = 'shared'
  cpus = 1
  memory_mb = 1024

Nice LLM-generated report :slight_smile:

I just tried a build with a similar configuration and it works well. Can you please post the full output of fly deploy? Can you ensure you have fly.toml in the same directory you are in when calling fly deploy?

app = "minimal-buildpack"
primary_region = "yyz"

[build]
  builder = "heroku/builder:22"


[env]
  PORT = "8080"

[http_service]
  internal_port = 8080
  force_https = true
  auto_stop_machines = false
  auto_start_machines = false
  min_machines_running = 0
  processes = ["app"]