I've had good results with grants ant stakes in and outside the house where they are coming in. Read the instructions for results. Also effective, usually, is mint in tea bags or fresh at their entry points. Most any really fragrant herb such as lavender or cayenne cut them off at the pass. I've even sprayed the lavender hydrosol on the counters and this makes them back away. When in the food, sit the container in the bright sunlight and they will vacate the premises. Putting the animal food in a bowl sitting in say a [larger] pie tin with water in it creates a moat to keep them from getting in. Hope these strategies work as well for you.