Probably the fastest (and simplest) way to serve static files.
docker run --rm -p 8080:80 -v $PWD:/static:ro ghcr.io/thedevminertv/gostatic
Additionally, you can add the following flags:
-cache <duration> # Enable caching
-compress-level <level> # Enable compression (-1=remove module, 0=none, 2=best)
-log-requests # Log requests (this will slow down the server by ~40%)
-index <file> # The file to serve when the path ends in `/` (default=index.html)
-spa # Make all 404 pages the index file, useful for SPA apps that use client side routing
-download # Enable downloading files
You can just add these to the end of the docker run
command.