How do Islamic banks invest their customers' money?

The source of the Islamic bank's funding, profits and business investments cannot be in/from businesses that are considered unlawful under Sharia, such as gambling, alcohol, arms, tobacco, pornography or any interest bearing activities.