Deploying a docker image with `fly launch` not working

Given the following fly.toml config file I would expect that someone running it under their account would be able to deploy it directly. What’s happening currently is that the cli is printing Could not find a Dockerfile, nor detect a runtime or framework from source code. Continuing with a blank app. even tho the build section is set in the file.
Am I doing something wrong?

app = "white-dawn-7370"

kill_signal = "SIGINT"
kill_timeout = 5
processes = []

  allowed_public_ports = []
  auto_rollback = true

  image = "blockstack/stacks-blockchain-api:1.0.5"

  http_checks = []
  internal_port = 3999
  processes = ["app"]
  protocol = "tcp"
  script_checks = []

    handlers = ["http"]
    port = 80

    handlers = ["tls", "http"]
    port = 443

To reproduce create a fly.toml file with the content of the code snippet and run fly launch.


Ah that’s a good catch. fly launch is designed to generate the fly.toml file, but it would make sense for that to just work.

You can workaround this by running fly apps create and then fly deploy with that fly.toml in place. That should just work!

The solution is kinda working but the good part of fly launch is that the name in the fly.toml file is replaced automatically. While with fly apps create + fly deploy you have to replace it manually.
This question if probably more a feature request for the CLI now :slight_smile: