Remove the temptation by keeping everything as clean as possible. In my experience, ants eventually give up and move on to greener pastures. We have to empty our dog’s dish before we go to bed every night, if there’s anything in it. If we happen to forget one night, it’s no problem, but any longer and the scouts will bring in the army.