Comment on Best way to dockerize a static website?

<- View Parent
sudneo@lemmy.world ⁨8⁩ ⁨months⁩ ago

Containers are a perfectly suitable use-case for serving static sites. You get isolation and versioning at the absolutely negligible cost of duplicating a binary (the webserver - which in case of the one I linked in my comment, it’s 5MB of space). Also, you get autostart of the server if you use compose, which is equivalent to what you would do with a Systemd unit, I suppose.

You can then use a reverse-proxy to simply route to the different containers.

source
Sort:hotnewtop