The 6.2-magnitude earthquake struck on Friday morning, just hours after an earlier, smaller tremor.
Hundreds of people were injured and thousands displaced by the quake.
Indonesia has a history of devastating earthquakes and tsunamis, with more than 2,000 killed in a 2018 Sulawesi quake.
Eight people died when the five-storey Mitra Manakarra Hospital in Mamuju partially collapsed on Friday, officials said. About 60 people were safely evacuated from the hospital.