Build Context and Multi-Stage Images
A working image that ships a build cache, a git directory and a developer's .env. Cut the context, split the build, and prove the runtime carries only what runs.
Project labintermediate~40 minFree
What you'll do
- ✓Control what the build context sends to the builder
- ✓Copy only the application into the runtime stage
- ✓Measure an optimisation instead of asserting it
- ✓Keep the runtime contract intact while shrinking the image
Lab outline
- 01Context
- 02Stages
- 03Runtime
Before you start
- Containerize the Status API
Every lab runs on a real machine of your own in the browser — no installs, nothing to clean up — and checks your work automatically as you go.