The Exploded Cluster · Course I
Scroll, and the thing you keep calling "a container image" comes apart in your hands. Four layers. Each one only stores what changed from the layer under it.
Field note. The order of your Dockerfile is a caching decision, not a style choice.
Put COPY . . above your dependency install and you have told the builder to
throw away every cached layer every time you change one line of code.