It can be ultra cheap. Buy raw coffee beans in big bags. Their shelf life is years, and they are like a few bucks per kilogram.
Roasting at home doesn't require expensive equipment either. A manual grinder is like 20 bucks, same goes for the brewing thingy that you put on the stovetop.