Comment on Best way to dockerize a static website?

Lodra@programming.dev ⁨8⁩ ⁨months⁩ ago

The simplest way is certainly to use a hosted service like GitHub Pages. These make it so easy to create static websites.

If you’re not flexible on that detail, then I next recommend Go actually. You could write a tiny web server and embed the static files into the app at build time. In the end, you’d have a single binary that acts as a web server and has your content. Super easy to dockize.

Things like authentication will complicate the app over time. If you need extra features like this, then I recommend using common tools like find as suggested by others.

source
Sort:hotnewtop