Use a Docker container to build the site

Retargeted from master, from #979.