Firefighters have worked through the night to contain a large fire that destroyed a building at Richmond River High School in North Lismore that was due for demolition.