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.
Dirk@lemmy.ml 8 months ago
Thanks, this looks actually pretty great. From the description it’s basically BusyBox httpd but with Nginx stability and production-readiness and functionality. It also seems to be actively developed.