Set dockerfile path in fly.toml

I use an unconventional path to my Dockerfile. Can I specify it in my fly.toml so I don’t have to pass --dockerfile to deploy every time?

I’m working on the build and deploy code right now, good timing. I’ll see if I can get that in quick.

This would be super helpful to me. Especially with the way I organize things, I’d prefer to have fly.toml in the project root, and all my source in /src for instance.

example structure


I’ve long kept “the code” out of project root for various reasons. A simple one being no need for a dockerignore file keeping uneccesary things out of the build context.

it would be great if fly.toml had support for this. Like

  dockerfile = "src/Dockerfile"



Did this ever happen?