Using a Docker feature called "multi-stage builds" [1], we build Maiko in one image, then create a new one into which we copy the final binary but not sources and headers. Both images are still Ubuntu-based (todo), but the <400 MB final product is much slimmer than what we had before. [1]: https://docs.docker.com/develop/develop-images/multistage-build/
580 B
580 B