Railway stopped picking up Dockerfile during build
I am using a monorepo where the server is deployed to Railway using a Dockerfile.
It has been working, but all my deploys since the last 4 days have said:
Using Nixpacks
instead of Using Detected Dockerfile
, which it used to say. This has lead to the build starting to fail.
This is the relevant Dockerfile that is no longer picked up: https://github.com/codicocodes/speedtyper.dev/blob/main/packages/backend/Dockerfile
The root directory of the app is configured to be: /packages/backend
What do I need to do to get Railway to start picking up the Dockerfile again?GitHub
speedtyper.dev/Dockerfile at main · codicocodes/speedtyper.dev
SpeedTyper.dev is a typing app for programmers. Battle against other developers by typing code snippets from real open source projects as fast as possible. - speedtyper.dev/Dockerfile at main · cod...
4 Replies
Hey codico, I just looked into this and it seems to be a regression related to root directories and automatic dockerfile detection. We should have a fix soon
Fix incoming in the morning (PST) Appologizes for this bug
In the meantime you can set the RAILWAY_DOCKERFILE_PATH variable to /{rootdir}/Dockerfile
Thank you very much, I suspected it was a bug! Thank you for addressing it!
Sorry for the late reply, but this should be fixed now 🙂
Thank you!