Reduce image size

Removes all .git directories after installing submodules.