I run tfenv inside a toolbox container and I install the Terraform versions I want in the build process.