3 ms·
This is of course pretty pointless, I mean it's neat but all these tiny containers don't really do anything so it isn't much more than a cool trick. However th
by adlpz 9y ago
This is of course pretty pointless, I mean it's neat but all these tiny containers don't really do anything so it isn't much more than a cool trick.
However there is a great lesson to take from this: you can create single-binary but really useful containers for just a few MBs, which is nothing in practice for a usual sized server, an a lot more lightweight than usual containers based off Alpine or Ubuntu.
In fact I run my static websites using that: a small 8-ish MB statically compiled web server "written" (it's really just library glue) in Go.
- j_s 9y agoDo you put the static content into the container?
- nathan-osman 9y agoI've done this with a couple of applications, using something like fileb0x in the build process to convert the files into Go source which can then be compiled into the final executable.