Docker Training 6 - Multi Stage Builds
Multi Stage Builds Back Story So way back in the beginning of this we briefly discussed layers. Each line in a dockerfile adds a layer. Which means it adds size to the dockerfile.
Lets look at when we added git to our first image.
1 RUN apk update && apk add --no-cache git Its just git. No big deal right? It can’t take that much space. But lets look at all the extra things that happened to add git.