a month ago
I have a mono repo with ./server/railway.toml|Dockerfile and ./app/railway.toml|Dockerfile
I set
[build]
dockerfilePath = "./server/Dockerfile"But when docker build try to copy files is in ./ directory, its fails because not found files. This is in railway build phase.
Help
1 Replies
a month ago
Hello gsiniguez;
the root directory cannot be set in railway.toml at all , that option doesn't exist in the config file , you need to set it in the dashboard: go to your service then settings then root directory and set it to /server (and /app for the other service) . once you do that, your dockerfilePath in railway.toml can just be ./Dockerfile. also important: the railway.toml file itself doesn't follow the root directory setting, so you need to set its path in railway as /server/railway.toml explicitly
Hope this help you :)