Any municipality may enter into a contract with any corporation supplying light, heat or power, or a supply of such light, heat or power, or any of them, for the public purposes of such municipality, for any period not exceeding 5 years.
N.J.S. § 40:62-25