Signal9Signal9 — home
online
back to labs

Multi-stage Docker Build: Final Stage Base

MediumDevOps10-15 min
The brief

A Go image is 1.2GB. The fix is a multi-stage build: compile in a full toolchain image, then copy the static binary into a tiny final image. Examine /root/project/Dockerfile (the stages differ per session) and record the base image of the FINAL stage — the last active FROM — to /root/answers/final_base.txt. A commented-out FROM isn't a stage.

What you'll do
  • Record the final stage's base image to /root/answers/final_base.txt

Hands-on lab: you work on a real Linux box in your browser, graded on the machine's actual state.