Senior Backend Engineer / Stage 5 · Testing and delivery
Build a reproducible container image
Inspect layers and run with external configuration.
"Already know" meets prerequisites. "Not relevant" removes the topic from your total but leaves what builds on it waiting.
Self-check
- Two builds use the same application commit and a mutable base-image tag. Explain why the resulting images may differ. Identify the build inputs you would pin, then run the same built image with two nonsecret configuration values.
- Evidence to include: Record the image digest, lockfile and base digest. Show that the runtime stage omits build-only files and that configuration changes do not require embedding secrets in a new layer. Do not describe a reproducibility demonstration unless you actually compare the builds.
Try it without the material first, then compare. Save your answer in your notes below. Report a problem with this self-check
Learning activities
2 activities- Not doneBuilding best practices (opens another site)
Docker's own guidance on multi-stage builds, a small build context and pinning base images by digest, with the trade-off that pinning stops automatic security updates.
25 min - Not done30 min