Starting from Docker 17.0.5+, you can create a single Dockerfile that can build multiple helper images with compilers, tools, and tests and use files from above images to produce the final Docker image. Docker can build images by reading the instructions from a Dockerfile.