Chahine was born to a Lebanese Christian family in the port city of Alexandria , which was at that time a center of cosmopolitan life in the Mediterranean with its large foreign communities .