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
/docker-compose.yml
/docs/foo.md
/fly.toml
/src/Dockerfile
/src/bin/docker-entrypoint
/tests/start.sh
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
[build]
dockerfile = "src/Dockerfile"
Thanks!!!
3 Likes
Did this ever happen?
2 Likes