Fix Dockerfile to purge git directory on build