Is there a way to specify a dockerfile target?

I don't see anything about it in the documentation. If there isn't, is there a bug/feature/something I can watch to see progress on it? And if not, is there somewhere to submit a request for that?
9 Replies
Percy
Percy2y ago
Project ID: N/A
Kvasir
KvasirOP2y ago
N/A
Ray
Ray2y ago
That would be a nixpacks feature (https://github.com/railwayapp/nixpacks). It doesn't seem to be supported right now. Why are you building a specific stage, out of curiosity?
Kvasir
KvasirOP2y ago
I have a setup with 3 app targets (website, auth system, and background worker) that share a lot of base layers. It has worked well so far locally to just put all the targets in the same dockerfile and build the relevant one when necessary Alternatively, is there a way to just specify a docker image to use and I just have my CI build that?
Ray
Ray2y ago
I suppose you could try building the base layer separately, and then do a FROM baseimg in your other targets? You'd need somewhere to store that base image, though
Kvasir
KvasirOP2y ago
That already happens too, but the shared bases want the most up to date code for some bash scripts I guess I can just build this all in CI and have dummy dockerfiles for each one separately for railway to use that just do a FROM
Ray
Ray2y ago
I'm wrong about this sorry for the misdirect
Kvasir
KvasirOP2y ago
Can I provide railway with docker secrets of some kind to pull from a private registry?
Want results from more Discord servers?
Add your server