I build static sites in Docker too. But then simply extract the built files out and upload them to any static hosting I need.
This allows me to self contain all the build tooling. And allows other developers to setup a dev environment in a few easy steps.