The build failed saying it couldn't find the Dockerfile, but I clearly have a Dockerfile in my root directory 😂

23 days ago

You reached the start of the range

Apr 23, 2026, 8:17 PM

scheduling build on Metal builder "builder-wzpwby"

[snapshot] received sha256:dbc079b640d7774ef293f4b4e6a95659152de7c4934307b70184567499dd1cc8 md5:3a422bde5f45623bcaba1b4e3fa984b4

receiving snapshot227 B553ms

analyzing snapshot227 B

unpacking archive10 KB

uploading snapshot227 B16ms

failed to read Dockerfile at 'Dockerfile'

$10 Bounty

1 Replies

Status changed to Open Railway • 23 days ago


Make sure your root directory in your service settings is correctly set to where your Dockerfile is located. And check if you named it "Dockerfile" exactly, because the Dockerfile must be named Dockerfile with a capital D, otherwise Railway will not use it by default. If you want to use a custom filename or path, you can set RAILWAY_DOCKERFILE_PATH defining the path.

You can read more about this in the docs, and see if it helps: https://docs.railway.com/builds/dockerfiles


Welcome!

Sign in to your Railway account to join the conversation.

Loading...