3 ms·
How could I make that clearer? I explicitly asked about what language ecosystems offer the snallest production containers and gave examples.
by nighmi 3y ago
How could I make that clearer? I explicitly asked about what language ecosystems offer the snallest production containers and gave examples.
- gregjor 3y agoYour question was not clear to me because it conflates containers (Docker) with runtimes and VMs. No container at all will give the smallest production container, so a compiled language with no runtime (C) or one with a small runtime (Go) answers your question. If you must use containers for some reason, the container stuff (e.g. Docker) imposes a constant overhead regardless of the contents, so you can set that aside and just add up the size of the application binary plus runtime plus dependencies. C will likely come out at the top of the list, .NET and Java at the bottom.
- gregjor 3y agoSee this: https://tech-couch.com/post/producing-smaller-docker-images-for-go-applications https://tech-couch.com/post/producing-smaller-docker-images-... Techniques described would apply to any application language.