when i researched how to get rid of anthills outside i read that you can put out cups with vinegar (not sure if it was deluted or not). it is supposed to attract ants and kill them when they get in contact with it.
it was written that you could also pour boiling water or boiling water with vinegar on the anthill to kill off ants.
im not sure how practical solution that is for a kitchen kabinet, but im sure there is a way to try it out. maybe spraying or something.
lemon, cinnamon etc can be used as making borders the ants will not cross.
usually people put them on the ants trails, along doors etc, to keep ants out of the house.
cleaning the kitchen with vinegarsolution or lemonsolutions might help to keep them from spreading.
when i had flies in my kitchen i put out jars with diluted applecider-vinegar and sugar. it attracted flies bigtime, but i had to put soap in to make them stick and die. maybe the same will work on ants.
good luck!
[edit]
found this:
Trace a line of ants to find out where they are entering the house and then seal it off. You can also try pouring a barrier of any of the following at the place where ants enter the house: cinnamon, cream of tartar, red chili pepper, salt, dried mint or sage, or cucumber peelings. Also try that old gift perfume you don?t like. Some perfumes may kill or repel ants.
For heavy ant infestations, mix a tablespoon of sugar and a tablespoon of borax with 2 tablespoons of water to make a thick syrup. Soak cotton balls in mixture and place the cotton balls on something flat so that ants can get to it. Place it in the middle of the ant infestation. Ants will eat it and take it back to the nest. Slowly but surely, the numbers will diminish. Have patience. Keep well out of reach of children and pets.
Attach bands of sticky, adhesive materials around base of plants and trees to deter ants, which can carry and colonize aphids. Ants like the sweet secretion of aphids and protect them from natural enemies.
Border gardens with bone meal.
Mix 2 tablespoons boric acid, 2 tablespoons sugar and a cup of water. Soak paper towels, place on dishes, and set out for ants. Keep away from children and pets.
Mix 4 ounces of mint jelly with 2 level tablespoons of powdered boric acid. Cut small squares of masking tape and dab mixture on tape. Stick on floors behind cabinets and appliances. Take precautions for children and pets.
http://www.msu.mcmaster.ca/macgreen/greencleaning.php