Railway cant execute my binary
Hey!
I'm deploying to railway via a Dockerfile which as an
ENTRYPOINT
has /app/main
, main
is my go build executeable. It used to work just fine months ago, didn;t deployed for a while and now when deploying i'm getting:
/bin/sh: ./main: not found
or
[FATAL tini (7)] exec /app/main failed: No such file or directory
I checked the pwd
and ls
before executing the binary and the binary is indeed in the directory but it just cant find it for any reason. Any idea why? :)4 Replies
Project ID:
bfce3811-7229-4d5f-97ca-784a19bdf21d
bfce3811-7229-4d5f-97ca-784a19bdf21d
Thats the ENTRYPOINT rn:
ENTRYPOINT pwd && ls -lisa && ls -lisa /app && ./main
Output of it:![No description](https://cdn.answeroverflow.com/1216157707573264414/Screenshot_2024-03-09_at_23.35.44.png)
OK found the issue, some of my package was using a CGO_ENABLED package (go-sqlite3) which broke the whole thing.. closing this :)