ignoxx
PROOP
2 years ago
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? :)
0 Replies
Thats the ENTRYPOINT rn: ENTRYPOINT pwd && ls -lisa && ls -lisa /app && ./main
Output of it:

OK found the issue, some of my package was using a CGO_ENABLED package (go-sqlite3) which broke the whole thing.. closing this :)