How can I host multiple project but share same library code base

I have several projects in my development environment but I want to deploy them into one server but each to run on own directory, but when I begun, one project alone took a whole 500MB that’s included all the files.
So I was wondering, does it mean every project will have to consume so much amount of space, are there no files or libraries that can be shared in the production and only upload them once.

You need to use the advanced deploy. there you can point projects to the same library folder.