Well the first thing is don’t leave dog food out. Ii’s better for the dog to limit feeding to a regular schedule when you put the food down for 15 minutes and then remove it.
Scout ants find their way toward a food source and carry that information bak to the nest, laying down a chemical as they go, As others follow that teail and also laying down chemicals. That’s why you see the ‘conga line’ across the room. Ater you take away the food source, you have to obliterate the trail or they will wander around looking for something else. You can use any cleaning product, even vinegar, and when you find the entry point, spray about 8–10” around that spot. When you wipe up the ants you are also wiping up their scent trail and any other ant that follows it into the house will lose it where you have sprayed and go back out.