No one was injured in the fire at Big O Farms in Elba, about 50 miles east of Niagara Falls.
Officials said the facility is a total loss, WKBW-TV reported.
A nearby deer hunter spotted smoke at the farm and alerted authorities, Genesee County Emergency Services coordinator Tim Yaeger said.
Firefighters from multiple counties battled the flames. A column of smoke gushed from the warehouse-like building.
Getting water on the fire was a challenge, with only one hydrant in the area and no sprinklers in the building, Yaeger said. He said the building wasn't required to have them.
A company phone rang unanswered Thursday night.
Officials are investigating the cause of the blaze.