in a repo I have a `Dockerfile` in a subpath, when I run deploy it deploys entire repo

I have ./anvil/Dockerfile and ./Dockerfile. I run RAILWAY_DOCKERFILE_PATH=./anvil/Dockerfile railway up --service anvil and it deploys everything and uses root Dockerfile. How can I deploy just that one Dockerfile I specified the path for?
16 Replies
Percy
Percy5mo ago
Project ID: N/A
Brody
Brody5mo ago
could you set the root directory to /anvil and remove the dockerfile path variable?
amorfati
amorfati5mo ago
you mean run railway up in the level where the Dockerfile I want to deploy is at?
Brody
Brody5mo ago
nope, set the root directory of the service to /anvil that setting can be found in the service settings
amorfati
amorfati5mo ago
don't see it
Brody
Brody5mo ago
it's in the service settings
amorfati
amorfati5mo ago
Brody
Brody5mo ago
disable staged changes
amorfati
amorfati5mo ago
where's that?
Brody
Brody5mo ago
in the flags
amorfati
amorfati5mo ago
don't see it
Brody
Brody5mo ago
in your account settings
amorfati
amorfati5mo ago
ok I'm part of a team
amorfati
amorfati5mo ago
one of these?
No description
Brody
Brody5mo ago
sorry, its called Updated Environments now disable that
Brody
Brody5mo ago
you can now set the root directory
No description