3 ms·
Primarily because it bundles a webserver to bridge the host code and code running in the browser.
by lf-non 2y ago
Primarily because it bundles a webserver to bridge the host code and code running in the browser.
- iainmerrick 2y agoWeb servers aren't big! Browsers are huge but servers can be tiny. I'm sure Caddy and nginx and the like are at least 2MB, but they have a lot of features. Googling around a bit for small web servers, I found this fun blog post: https://lipanski.com/posts/smallest-docker-image-static-website https://lipanski.com/posts/smallest-docker-image-static-webs... They ended up with a static web server in a 154KB Docker image.