Too Long; Didn't Read
Starting from <a href="https://hackernoon.com/tagged/docker" target="_blank">Docker</a> <strong>17.05+</strong>, you can create a single <code class="markup--code markup--p-code">Dockerfile</code> that can build multiple helper images with compilers, <a href="https://hackernoon.com/tagged/tools" target="_blank">tools</a>, and tests and use files from above images to produce the <strong>final</strong> Docker image.