Fire crews are battling massive flames at a Chevron refinery just outside of Los Angeles.

Officials in El Segundo, California, urged people to stay indoors Thursday night. By early Friday, they said the fire was contained and there was no threat to public safety.

No evacuations have been ordered. The company says there were no injuries, all personnel were accounted for and a monitoring system indicated the fire did not move beyond the facility's fence line.

It wasn't immediately clear what caused the fire.

El Segundo is a beachside city located about a mile south of Los Angeles International Airport.