a jar you can toss out in the garbage, add apple cider vinegar to the jar. cover with a cling wrap, make small holes so the flies go in, or make a paper funnel so the fruit fly down the funnel, but not out.
I agree with Dfm. You can also use wine vinegar or even left over wine in the jar. I knew that was the BEST way to control them when I spotted that my local fruit & veggie market had a jar like that "hidden" among their berry display. Wishing you the best.
Here is what I do and it works really well! https://www.homeroad.net/2015/10/a-fruit-fly-trap-that-works.html