Get the latest tech news
Static sites with Python, uv, Caddy, and Docker
My preferred deployment stack for Python-built static sites.
For our main example we can use my personal deployment of sus, a static site based URL shortener I wrote and have been using for years. And our final step is to copy the output we generated with uv and Python into the location where Caddy expects to find the files to serve: What it lets me to is pretend I’m hosting the actual JS files required for Plausible to work, invisibly proxying the requests to their manager instance.
Or read this on Hacker News