Vinegar sprayed around the door sills and foundations will do the same..............
I don’t mind ants. I looked into ants and found they are clean, they make their own antiseptic! Actually I like ants. I put a very small dish (actually a yogurt container lid) with a bit of honey it in for them. That way they stay in one corner and I don’t inadvertantly step on them.