I've run it inside a container and not experienced tremendous issues with RAM or CPU usage, but this is for very few auth calls per day.
Also, I needed to apply some not-obvious environment / config changes to make it work behind HTTPS and inside a container without /dev/random being remounted.