Failed to fetch an image or build from source: error building: unexpected EOF

Hi there, I’m new to Fly.io and this is the first app I’m deploying. When trying to deploy my Rails app I get the following error

Error failed to fetch an image or build from source: error building: unexpected EOF

I really have no clue what could be causing it so if someone could point me in the right direction that would be amazing. I tried running flyctl launch again and I got the below error:

This is an error connecting to our remote Docker builder. Will you run fly doctor and see if everything passes?

You can also try this experimental setting: fly wg websockets enable

That changes how we communicate with the Docker builder (it uses websockets instead of UDP). If you’re running a local firewall or VPN service, this can help prevent weird errors caused by conflicts.