Dockerfile builder not being used despite explicit configuration in monorepo
maxvaljan
PROOP

2 months ago

I have a monorepo with multiple services, configured to use a Dockerfile, but Railway keeps using Railpack instead, causing build failures.

Configuration:

apps/auth/railway.json explicitly sets "builder": "DOCKERFILE" and "dockerfilePath": "apps/auth/Dockerfile"

Root directory is set to . (repo root)

UI also shows Dockerfile selected as the builder

Issue: Build logs show root_dir= (empty) and Railpack is being used instead of the Dockerfile. The config-as-code file is found but the builder setting is ignored.

Build logs show:

config-as-code path set as '/apps/auth/railway.json'

...

using build driver railpack-v0.18.0

Despite Dockerfile being explicitly configured, Railpack runs and fails because it can't find a start command in the monorepo root.

Timeline:

Yesterday evening: Same exact configuration worked fine

This morning: Same configuration now fails

No changes made to config or relevant code

Expected: Dockerfile build should be used Actual: Railpack is used, ignoring the builder configuration

Solved

5 Replies

vincentwuk
PRO

2 months ago

same


emilmilow
PRO

2 months ago

+1


Status changed to Awaiting Railway Response chandrika 2 months ago


pixelmund
PRO

2 months ago

+1


2 months ago

Hey all, we're aware of this issue and are working on a fix. Apologies for the impact!


Status changed to Awaiting User Response Railway 2 months ago


2 months ago

This should now be fixed!


Status changed to Solved nico 2 months ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...