Use red wine vinegar as a fruit fly attractant and pour a little bit into a jar. Then cover with some plastic. Wrap. And poke holes in the top. Just wait for the flies to come in.