You don't need docker for that. Also if you leave a WordPress for years with auto-updates, the plugins will often be abandoned causing your site to be vulnerable.Not to mention any breaking changes that can be introduced.
A SSG generated site will be the same in 10 years as its today, even if you might need to fix some things with your project to make further updates.