Docker build context
How do I set the docker build context? This is useful for monorepo support because it will need the workspaces from the root package.json
3 Replies
Project ID:
N/A
N/A
You can do it by connecting the service to the repo and leaving the root directory as the repo root, then you can set dockerfile path in your railway.json/toml like so:
I think you can also set the dockerfile path from the settings ui
the above will essentially then run something along the lines of
docker build -f apps/your-app/Dockerfile
so you can then access all the packages in the repo