How can I specific target for Dockerfile in railway.json file at build time?

I have multi-steps in a single Dockerfile (including dev and prod) stages.

and for production I want the dockerfile to use prod stage for building.

Solved

4 Replies

a year ago

sorry but we don't support that at this time


a year ago

you would want to have separate dockerfile like Dockerfile.dev and Dockerfile.prod


I understand, thanks for the confirmation 🙂


a year ago

!s


Status changed to Solved brody about 1 year ago


Loading...