#Is there a way to specify a dockerfile target?

13 messages · Page 1 of 1 (latest)

limber knoll
#

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?

reef deltaBOT
#

Project ID: N/A

limber knoll
#

N/A

reef deltaBOT
wild forge
limber knoll
#

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?

wild forge
#

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

limber knoll
#

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

wild forge
#

sorry for the misdirect