#Is there a way to specify a dockerfile target?
13 messages · Page 1 of 1 (latest)
Project ID: N/A
N/A
You might find these helpful:
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, though
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
I'm wrong about this
sorry for the misdirect