The author dismissed that option saying "I value that docker build can have a clean environment every time", so this is self-inflicted.