Here's what I've done to get rid of fruit flies in my house and it worked great for me.
Create a fruit fly trap by mixing apple cider vinegar with a few drops of dish soap. I used a 2 liter soda jug and put the mixture of apple cider vinegar in the soda jug about half full.
The fruit flies go into the bottle and they usually can't get back out and eventually die.