Concept Flow - Multi-stage Docker builds
Start: Base Build Stage
Compile & Package App
Create Smaller Runtime Stage
Copy Artifacts from Build Stage
Set Runtime Environment
Build Final Image
Run Container with Final Image
The Dockerfile first builds the app in one stage, then copies only the needed files to a smaller image for running.