OK but is there any way to layer docker files? I'm not talking about compose, I mean like combining layers from different dockers in a nice way?
That sounds like multi-stage builds https://docs.docker.com/build/building/multi-stage/
or more like combining steps without explicitly having to combine layers?