Nettacker icon indicating copy to clipboard operation
Nettacker copied to clipboard

Update Dockerfile to Multi-Stage

Open multi-stager opened this issue 10 months ago • 0 comments

Proposed change

Hi,

Thanks for maintaining OWASP Nettacker. I represent a research group investigating multi-stage builds. We recently refactored your Dockerfile to a multi-stage Dockerfile and found that it brings the following benefits:

✅ Reduced final image size (from 642MB to 137MB)
✅ Minimized image vulnerabilities (verified via Trivy, from 10 to 1)

We hope this small improvement to the Dockerfile will be useful to you :)

Thanks,

Type of change

  • [ ] New core framework functionality
  • [ ] Bugfix (non-breaking change which fixes an issue)
  • [x] Code refactoring without any functionality changes
  • [ ] New or existing module/payload change
  • [ ] Localization improvement
  • [ ] Dependency upgrade
  • [ ] Documentation improvement

Checklist

  • [x] I've followed the [contributing guidelines][contributing-guidelines]
  • [ ] I've run make pre-commit, it didn't generate any changes
  • [ ] I've run make test, all tests passed locally

multi-stager avatar Feb 04 '25 02:02 multi-stager