Docker images are the main resulting artifacts that developers work on all the time. The simplicity of Docker files and speed of container technology allows us to enable rapid iteration on the application that we are working on. However, these advantages of using Docker start to diminish once the time it takes to build Docker images starts to grow uncontrollably. In this section, we will discuss some cases of building Docker images that take some time to run. Then, we will give you a few tips on how to remediate these effects.
A big contributor to image build time is the time spent in fetching upstream images. Suppose we have a
Dockerfile with the following line:
This image will ...