Comment on Best way to dockerize a static website?

sudneo@lemmy.world ⁨8⁩ ⁨months⁩ ago

I personally package the files in a scratch or distroless image and use github.com/static-web-server/static-web-server, which is a rust server, quite tiny. This is very similar to nginx or httpd, but the static nature of the binary removes clutter, reduces attack surface (because you can use smaller images) and reduces the size of the image.

source
Sort:hotnewtop