2 months ago
Hey There,
Right now i'm experiencing my deploys failing, telling me the deploy is using Railpack. But, below in settings of the deploy, it says Docker File detected. Furthermore, there are no build command options available for me to use.
I'm thoroughly confused why I am not able to add in build commands in Railway, and why it is detecting Doctorfile when the build is leveraging Raiilpack.
4 Replies
Status changed to Awaiting Railway Response Railway • 2 months ago
2 months ago
hy,
The reason you're seeing dockerfile detected even though railpack is in your deploy log is because railway always prioritizes a dockerfile found at the root of your project, it overrides everything including your builder settings. that's the conflict you're seeing. the fix is to just rename your dockerfile to something like dockerfile.bak or dockerfile.github , railway only auto-detects files named exactly "dockerfile" with a capital d. once you rename it, railway will stop detecting it and fall back to railpack, and your build command options should come back
ilyass012
hy, The reason you're seeing dockerfile detected even though railpack is in your deploy log is because railway always prioritizes a dockerfile found at the root of your project, it overrides everything including your builder settings. that's the conflict you're seeing. the fix is to just rename your dockerfile to something like dockerfile.bak or dockerfile.github , railway only auto-detects files named exactly "dockerfile" with a capital d. once you rename it, railway will stop detecting it and fall back to railpack, and your build command options should come back
2 months ago
Hey there, I have no dockerfile anywhere, which is super weird that it is detecting one. Any thoughts?
2 months ago
FYI - couldn't solve this, so I ended up recreating the backend and relaunching and was able to have success.