The thin image: container build craft and hardening
The Recipe · Open board
: the recipe board again. This lesson is about what you leave out of the recipe, and what you keep outside the finished image.
Before you start.The Recipe (the Dockerfile) showed that a Dockerfile builds an image one layer at a time, and that Docker reuses a layer only when every line above it is unchanged. It also showed a multi-stage build, where a big first stage compiles the program and a small last stage receives only the result. Running a Container for Real showed that a container is a normal process with a fence around it. Ship it: the line ran the full pipeline for one small service. This lesson goes slower on the three build choices that pipeline made: the base image, the user, and the scan.
Lesson 63 of 70 in DevOps
The rest of this lesson is part of a plan.
A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year.