logoalt Hacker News

rockyjtoday at 12:33 PM4 repliesview on HN

That is a strange title / comparison. Docker images (even slimmed down) have an OS (most likely a Linux distribution), some libs and the runtime needed for a programming language. On it's own a "game engine + WASM binary" is not comparable.


Replies

manarthtoday at 1:04 PM

    > "Docker images (even slimmed down) have an OS (most likely a Linux distribution)"
Not necessarily. Docker images can be based from the "scratch" container, and may contain only a single binary. With static compilation, the libraries can be included in the binary.

The O/S is provided by the container-host (which is usually a linux VM).

This doc describes building an image from "scratch": https://docs.docker.com/build/building/base-images/#create-a...

bogwogtoday at 12:49 PM

Seriously, this is a ridiculous comparison. It's apples to oranges.

This site used to have interesting technical discussions, but now its all either AI cheerleading, or vibe coder blog posts.

adamtuliniustoday at 12:38 PM

Maybe it's a good reminder to _not_ bundle an entire OS in a Docker image

show 1 reply
andixtoday at 5:46 PM

Container images don't need an OS. You can always do "FROM scratch" and only copy what's needed to run the binary. If it's completely self contained one executable is enough.