Comment on Best way to dockerize a static website?

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

Because serving static files doesn’t really require any flexibility in web serving code.

If your setup has an nginx or similar as a reverse proxy entry point, you can just tell it to serve the directory. Why bother making an entire new chroot and proxy hop when you have absolutely zero requirements beyond what the reverse proxy already provides. Now if you don’t have that entry point, fine, but at least 99% of the time I see some web server as initial arbiter into services that would have all the capability to just serve the files.

source
Sort:hotnewtop