a year ago
My Dockerfile specifies a dev and prod image. How does railway know to build the prod image?
(It is building the prod image, like I want, just curious how it knows.)
1 Replies
a year ago
Hi there 
That's an excellent question - in this case, it might just be luck as the prod image is declared after dev 
If you want that control, I'd recommend declaring separate Dockerfiles for dev and prod. Then, for each case, you can specify which Dockerfile you'd like Railway to use in the custom dockerfile path: https://docs.railway.app/guides/dockerfiles#custom-dockerfile-path
Status changed to Awaiting User Response Railway • over 1 year ago
6 months ago
This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!
Status changed to Solved Railway • 6 months ago