git init --bare foo.git
git clone user@yourserver.com:~/foo.git
It is a single binary and I think it is also very light on resources. At least compared to gitlab.