Which is more environmentally friendly? Plastic or glass spray bottles?

I’m thinking about sharing some of my home made household products with friends. Which is better to package them from an environmental point of view? Plastic or glass? Or is there another alternative? Any ideas?