I was once a shell newbie too, I can understand that. But, reinstalling a package every time? For the reason of robustness??
I read that as the original reason for the reinstall everytime was not yet knowing how to build their own docker image. A reasonable place for a newbie to be. And a perfectly reasonable step to leave for future optimization.