Deploying a monorepo with two dockerfiles
ktranish
HOBBYOP

4 months ago

Hey. How can I deploy two services that are from the same monorepo project but are using different dockerfiles?

Solved

0 Replies

dev
MODERATOR

4 months ago

If the two dockerfiles are each in a different folder then you can make two services, each pointing to the same repo, but with different root directories specified (if you have shared folders then this won't work for your usecase, in that case try the solution below)


dev
MODERATOR

4 months ago

If they're in the root directory, then you can do the same thing as I explained above but instead of specifying root directories you can specify the RAILWAY_DOCKERFILE_PATH through a service variable


dev
MODERATOR

4 months ago

Sources:

  • -


dev
MODERATOR

4 months ago

N/A


ktranish
HOBBYOP

4 months ago

Thanks a lot. I did not know about the RAILWAY_DOCKERFILE_PATH variable. That solved it for me


dev
MODERATOR

4 months ago

Awesome, happy I could help


dev
MODERATOR

4 months ago

!s


Status changed to Solved dev 4 months ago


Loading...