Specify path to Dockerfile?

a year ago

Can we specify a path to the Dockerfile in a monorepo?

Ideally the setup would be like this

  1. clone

  2. docker build . -f docker/api.Dockerfile -t my-app:latest

  3. docker run my-app

From what I understood this could be possible with a custom railway config? Couldn't quite find it in the docs or where to do this in the UI. Cheers

0 Replies

a year ago

c8419d58-4fbb-4ffb-bc32-e3c6a5f63500


a year ago

Ah nvm have found it in the guides part. I was looking under reference. Maybe a link could be added 😄

https://docs.railway.app/reference/dockerfiles