The infrared luminosity of galaxy clusters