How to use dockerfiles in a shared monorepo setup?
rayzhudev
TRIALOP

a year ago

I've got a shared monorepo setup where I have a backend, frontend, and shared packages. Right now I'm not using dockerfiles or railway.toml, I'm just using the default behaviour and using custom build and run commands for the frontend and backend. However, I need to install libssl on the backend, so I need to use a dockerfile. What's the right configuration for me to continue using a shared monorepo setup but also use a dockerfile for my backend? (and maybe a dockerfile for the frontend in the future if needed)

Solved

4 Replies

rayzhudev
TRIALOP

a year ago

10248319-2e2b-4990-bb6b-2ee0708634b4


brody
EMPLOYEE

a year ago

I assume you have your Dockerfiles in subdirectories, so you can just do something like this with a service variable -

RAILWAY_DOCKERFILE_PATH=/packages/frontend/Dockerfile

this service variable will tell railway the location.


rayzhudev
TRIALOP

a year ago

thanks


brody
EMPLOYEE

a year ago

!s


Status changed to Solved brody about 1 year ago


Loading...