Seal as much as possible of the area where they are coming into the house (filler, silicon, whatever according to where it is), then spray the point(s) of entry with WD40. It stops the ants from setting up their trace lines, so they go elsewhere (in my home that means surfacing outside instead of inside). This has worked well for me in several homes & countries in which I have lived : I would be interested to hear if it works for anyone else.
This is a no-kill, no poison solution for those that care. I prefer not to kill any property invaders, with 3 exceptions : mosquitos (meditators worst enemy), house flies & ticks.