Ship the binary, not the compiler
Building needs a compiler, modules and source code. Running needs one file. A multi-stage build keeps those two worlds apart, so production gets only what it needs.
Building needs a compiler, modules and source code. Running needs one file. A multi-stage build keeps those two worlds apart, so production gets only what it needs.