A cargo ship docked for repairs in a Chinese port caught fire, killing at least 25 people and leaving others missing.