This is a simple and clean way to catch fruit flies. Add apple cider vinegar with a drop of dish soap to the bottom and the convex lid (combined with the soap) makes it impossible for them to get out.
We've used it next to the sink and by the trashcan. No more fly problems and isn't even noticeable.
There's 2 files (ribbed and smooth outer surfaces.)
.2mm layer height. 44g of filament. About 3 hours to print a set at 60 mm/sec. Print the lid upside down with supports.