I am successfully using Docker's Multi-Stage feature to build some code and then copy the resulting artifacts into a final image.
Is it possible to split this one big-ish Dockerfile into multiple files?
I would like to improve the readability of the individual stages. Which will become more important when more stages are added.
EDIT: I am aware that I could write a Makefile (or similar) where I first build an image named "myproject-stage1" and then use FROM myproject-stage1 AS build
. However, I'd rather avoid the external build tool if possible.