What can I do about very small flies in my worm farm?

I think they are vinegar flies. They are out of control and coming into the house. I’m keeping the ones in the house under control by leaving a glass of red wine out (they are all flying in and drowning). I have tried adding lime to the farm but that only seemed to deter them for a couple of days. I also now have ants!

Related posts:

  1. What can I do about very small flies in my worm farm?
  2. Flies in my worm farm, is my worm farm ok?
  3. How to kill flies in my vegetable garden?