Skip to content

feat: convert to multi-stage build to reduce image size (closes #14)#19

Merged
PuneethM-06 merged 12 commits into
mainfrom
feat/docker-multi-stage
Jul 18, 2026
Merged

feat: convert to multi-stage build to reduce image size (closes #14)#19
PuneethM-06 merged 12 commits into
mainfrom
feat/docker-multi-stage

Conversation

@PuneethM-06

@PuneethM-06 PuneethM-06 commented Jul 13, 2026

Copy link
Copy Markdown
Owner

Summary

Implemented a multi-stage Docker build for linux-sysmonitor to separate application preparation from the runtime environment.

Changes

  • Added a dedicated builder stage to prepare the application.
  • Added a separate runtime stage containing only the application and required runtime dependencies.
  • Used COPY --from=builder to copy the prepared application into the final image.
  • Preserved existing container behavior while demonstrating the multi-stage build pattern.

Verification

  • Built the optimized image successfully.
  • Verified the container executes successfully and produces the same output as the previous version.
  • Compared image sizes before and after optimization.

@PuneethM-06
PuneethM-06 requested a review from gayathrii12 July 13, 2026 09:57
@PuneethM-06 PuneethM-06 self-assigned this Jul 13, 2026
@PuneethM-06 PuneethM-06 added the enhancement New feature or request label Jul 13, 2026
@PuneethM-06 PuneethM-06 changed the title multi-stage image feat: convert to multi-stage build to reduce image size (closes #14) Jul 13, 2026

@gayathrii12 gayathrii12 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

  1. The PR says NOTES.md documents the before/after image-size comparison, but that file is not included in the changed files. Please add it, or update the PR description to remove that claim.

2)Include the actual size comparison and explain the benefit

@PuneethM-06
PuneethM-06 changed the base branch from feat/dockerfile to main July 18, 2026 02:57
@PuneethM-06

Copy link
Copy Markdown
Owner Author
  • Imagine size has been updated in the ticket with screenshot
  • updated PR summary

@PuneethM-06
PuneethM-06 merged commit d6c0bfa into main Jul 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants