doT had a security vulnerability and ejs has even fewer dependencies: https://www.npmjs.com/advisories/798
Pug contains a lot of unnecessary dependencies leading to code bloat, which results in increased docker package size, and thus docker image size). express-dot-engine is much simpler and performs better.