Skip to content

Add multi-stage builds section to docker-training#42

Merged
elft3r merged 5 commits into
mainfrom
claude/exciting-hopper-om79A
Jun 3, 2026
Merged

Add multi-stage builds section to docker-training#42
elft3r merged 5 commits into
mainfrom
claude/exciting-hopper-om79A

Conversation

@elft3r

@elft3r elft3r commented Jun 3, 2026

Copy link
Copy Markdown
Owner

Summary

Adds a new "Multi-Stage Builds" slide section to the docker-training presentation, positioned after the Docker Images section. This section teaches the benefits and implementation of multi-stage Dockerfile builds for reducing image size.

Changes

  • New section: sections/multistage-builds.html — comprehensive slide deck covering:

    • The problem of bloated images (single-stage Go example: 838 MB)
    • Multi-stage build syntax and workflow
    • Size comparison results (98% reduction: 838 MB → 12.1 MB)
    • Named stages and COPY --from syntax
    • Using --target flag for dev vs. production builds
    • Hands-on lab tasks with 4 progressive exercises
  • Updated presentation index: Modified index.html to load the new section in the correct position (after docker-images.html)

  • Updated documentation: Modified CLAUDE.md to reflect the new section in the presentation order (now section 12, with subsequent sections renumbered)

Implementation Details

The section uses the established presentation patterns:

  • Grid layouts with code examples and explanatory cards
  • Fragment animations for progressive disclosure
  • Consistent badge and icon styling
  • Real-world size comparisons (Go binary example)
  • Links to external lab resources on GitHub

https://claude.ai/code/session_01Kpsk26gHyUxXYL46tVMdjm

7 slides covering the problem (bloated single-stage images), the
two-stage Dockerfile pattern, the 838 MB → 12 MB size result, named
stages and COPY --from, the --target flag for dev vs prod targets,
and a lab slide with the 4 hands-on tasks.

Section is inserted after docker-images in index.html.

https://claude.ai/code/session_01Kpsk26gHyUxXYL46tVMdjm
@github-actions

github-actions Bot commented Jun 3, 2026

Copy link
Copy Markdown

Preview Deployment

This PR has been deployed for preview:

Presentation URL Commit
cloud-migrations https://bf3aaafa.presentations-15u.pages.dev/cloud-migrations/ 49e0d98
docker-training https://bf3aaafa.presentations-15u.pages.dev/docker-training/ 49e0d98
secure-landing-zones https://bf3aaafa.presentations-15u.pages.dev/secure-landing-zones/ 49e0d98

Last updated: Wed, 03 Jun 2026 20:20:56 GMT

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new “Multi-Stage Builds” section to the docker-training presentation, extending the Dockerfile/images material with an explanation of multi-stage build benefits and workflow.

Changes:

  • Added new slide deck section sections/multistage-builds.html (problem → solution → results → syntax patterns → lab tasks).
  • Updated docker-training/index.html to include the new section after docker-images.html.
  • Updated docker-training/CLAUDE.md to reflect the new section order and renumber subsequent sections.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 10 comments.

File Description
docker-training/sections/multistage-builds.html Introduces the new multi-stage builds slide section with examples and a lab, using existing deck layout patterns.
docker-training/index.html Inserts the new section into the presentation sequence after Docker Images.
docker-training/CLAUDE.md Updates documented section order/numbering to include the new section.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread docker-training/sections/multistage-builds.html Outdated
Comment thread docker-training/sections/multistage-builds.html Outdated
Comment thread docker-training/sections/multistage-builds.html Outdated
Comment thread docker-training/sections/multistage-builds.html Outdated
Comment thread docker-training/sections/multistage-builds.html Outdated
Comment thread docker-training/sections/multistage-builds.html Outdated
Comment thread docker-training/sections/multistage-builds.html Outdated
Comment thread docker-training/sections/multistage-builds.html Outdated
Comment thread docker-training/sections/multistage-builds.html Outdated
Comment thread docker-training/sections/multistage-builds.html Outdated
- Add text-base to right-column card containers so cards scale down
  from the slide's text-4xl base size
- Tighten gap-4 → gap-2 on right columns to reduce vertical overflow
- Add fragment class to Problem slide cards for consistent behaviour
- Remove h3 from One Dockerfile/Multiple Targets cards to match the
  icon + paragraph pattern used on other slides
- Remove lab slide

https://claude.ai/code/session_01Kpsk26gHyUxXYL46tVMdjm
Replace verbose card descriptions with concise copy so cards fit
at the default slide font size without any text-base overrides.

https://claude.ai/code/session_01Kpsk26gHyUxXYL46tVMdjm
- Add aria-hidden="true" to all decorative FA icons, consistent
  with other sections in the presentation
- Normalise 838MB → 838 MB to match the format used elsewhere

https://claude.ai/code/session_01Kpsk26gHyUxXYL46tVMdjm
@elft3r elft3r merged commit 2ebdf62 into main Jun 3, 2026
2 checks passed
@elft3r elft3r deleted the claude/exciting-hopper-om79A branch June 3, 2026 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants