Skip to content

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

Open
PuneethM-06 wants to merge 10 commits into
feat/dockerfilefrom
feat/docker-multi-stage
Open

feat: convert to multi-stage build to reduce image size (closes #14)#19
PuneethM-06 wants to merge 10 commits into
feat/dockerfilefrom
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.
  • Documented the image size comparison in NOTES.md.

@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
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.

1 participant