Image size improvements and pinned Netexec version#735
Conversation
Minimized final image size (From ~2 GB to ~350 MB) Pinned a stable NetExec version Signed-off-by: Professor Bossetti <emanuelebosimini@gmail.com>
|
Thanks for the PR! |
|
I always prefer using the latest release tag to ensure traceability and reproducibility, especially because it triggers my CI/CD pipelines. Moreover, relying on main which evolves continuously, might lead to potential breakages or unexpected changes |
We only do tagged releases once every few months, but each commit updates the hash that is displayed when running |
|
Got it, thanks. I've switched to cloning from main branch |
|
@kaisersource while we are at it, could you add entry points for "NetExec" and the "nxcdb" as well? |
|
For others in the future, old build had 2.21GB (see in the screenshot), new build has 351MB 🚀 |

Description
This PR introduces a multi-stage Docker build for latest version of NetExec, using the latest python:3.13-slim-bookworm as the base image. The multi-stage setup optimizes the final image size by separating the build environment from the runtime environment.
Summary of Changes
Adds a builder stage that Installs necessary build dependencies The final stage:
Issue Fixed / Enhancement
This results in a smaller, cleaner final image suitable for deployment and CI/CD
Type of change
Ensure Docker is installed on your machine. No external dependencies are required beyond Docker itself.
Checklist: