a year ago
Hey! I ran into an issue today deploying a service in my typescript turborepo monorepository.
The service is using a Dockerfile to build the container, but also depends on a private package in the monorepo. If I set the root directory to the service directory, it can't find the package in the monorepo. If I set the root directory to the monorepo root, it can't find the dockerfile in the service directory.
I know Vercel has an option to set a root directory, but include the monorepo root in the build to account for these issues. How should I deal with this on Railway?
4 Replies
10 months ago
Hello,
For a shared monorepo you would not want to set a root directory so make sure you are using filtered build and start commands.
As for telling Railway where your Dockerfile is located, use a RAILWAY_DOCKERFILE_PATH
variable - https://docs.railway.app/reference/variables#user-provided-configuration-variables
10 months ago
Hey Brody,
Thats exactly what I needed! Thanks a lot
Status changed to Solved brody • 11 months ago