Error: failed to spawn command: ./gateway-0.0.6-staging: No such file or directory (os error 2)

I am trying to deploy my binary, deployment from flyctl worked with no issue but binary failed run. I keep getting the below error in fly logs:

e[31mERRORe[0m Error: failed to spawn command: ./gateway-0.0.6-staging: No such file or directory (os error 2)

I know the binary is there cos the I did RUN ls ./ in my Dockerfile I could see it when flyctl is doing its thing. I also RUN chmod +x ./gateway-0.0.6-staging before ENTRYPOINT.

Please I need help with this, cos I have spent 48 hours trying to resolve the issue.

Does your application start and run correctly if run locally in Docker?

Yes, it does

Hmm, OK. There isn’t much to go on in this thread, though staff here will sometimes determine the account details for a question-author and thus go fishing in servers; for the rest of us mortals we may be a bit stuck. Would you post your Dockerfile, in case there is something that sticks out for us?

I’d suggest adding your TOML config as well, so readers can see the general shape of your application.