How do I deploy with a specified Dockerfile?

I have multiple Dockerfiles in a directory and want to deploy a specific one of them. How should I do that? If I can’t do that, is there any solution you can think of?

I need to keep my Dockerfile in a parent directory because it uses shared Go packages.

If I need to copy and paste to make this work… I’m used to it. So just let me know. Excited to get this bad boy up! Thanks guys!

You might want to check out the --dockerfile option on the flyctl deploy command. That lets you point to another Dockerfile at deploy time.

1 Like

I missed that whole reference section somehow, thank you!

For those who may be in my situation, I recommend just deploying an image using this reference: https://fly.io/docs/flyctl/deploy/