fly deploy: failed to fetch an image or build from source: app does not have a Dockerfile or buildpacks configured

Hi, I’ve seen a couple threads about this error message out there, read all of them and none of the suggestions seemed to help. I’ve read App Configuration (fly.toml) · Fly Docs and Builders and Fly · Fly Docs, neither really cleared anything up for me, though I admit I’m not very well-versed in dev ops. I’ve also tried fly config save -a APPNAME, (obviously substituting APPNAME for the name of my app) but the error persists.

I originally deployed my app to Fly using Turboku, which worked beautifully. Now I’d like to be able to deploy directly from flyctl. I have no idea what Dockerfile or buildpacks config to use. I’m using Deno, if that matters.

hey! I have been running into something similar and was wondering if you had made any progress on this?

I haven’t. Completely baffled.

Can you share us your fly.toml file? There must be either

[build]
  image = ...

or Dockerfile in your working directory.

Here’s what I had when I finally stopped trying to get it working. Wasn’t sure what/if there should be an image attribute.

# fly.toml app configuration file generated for playstorm on 2023-06-02T18:42:38-07:00
#
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#

app = "playstorm"
primary_region = "sjc"
kill_signal = "SIGINT"
kill_timeout = "5s"

[build]
  builder = "flyio/builder"

[[services]]
  internal_port = 8000
  protocol = "tcp"

  [services.concurrency]
    hard_limit = 25
    soft_limit = 20

  [[services.ports]]
    handlers = ["http"]
    port = "80"
    internal_port = 8000

  [[services.ports]]
    handlers = ["tls", "http"]
    port = "443"
    internal_port = 8000

  [[services.tcp_checks]]
    interval = 10000
    timeout = 2000

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.