Took me quite a while to figure it out, so I wanted to share and hopefully this could get fixed.
For my project, using fly deploy
fails with an error message that doesn’t help much. I put the error message below. (takes like 2 secs to fail)
I finally figured out that maybe it could be because in my Ubuntu 22.04 terminal, I use a symlink to reach my project’s directory.
Sure enough, when I went to the actual directory without symlinks in the path, fly deploy
worked!
Hopefully this can be fixed from fly.io’s side
Leaving this here in case someone searches for parts of the error message, it may help them.
$ fly deploy
==> Verifying app config
--> Verified app config
==> Building image
Remote builder fly-builder-green-violet-3464 ready
==> Creating build context
--> Creating build context done
==> Building image with Docker
--> docker host: 20.10.12 linux x86_64
Sending build context to Docker daemon 144B
[+] Building 0.0s (2/2) FINISHED
=> CACHED [internal] load remote build context 0.0s
=> CACHED copy /context / 0.0s
Error failed to fetch an image or build from source: error building: failed to solve with frontend dockerfile.v0: failed to read dockerfile: open /data/docker/tmp/buildkit-mount335201529/Dockerfile: no such file or directory