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
Project ID:
N/A
N/A
You might find these helpful:
- Stacking hours
- What does the 'Sign-up for early access to new features' link do?
- Automatic Deployments Option Not Loading
⚠️ experimental feature
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?
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?
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, thoughThat 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
I'm wrong about this
sorry for the misdirect
Can I provide railway with docker secrets of some kind to pull from a private registry?