Go old school, put a plastic bag half filled with water and hang it at the top of the door frame so it is visible.
The water will cause the flys’ vision to defract and they won’t come in. I have used this at my wife’s business, hairdresser, as well as my house in the summer time. It will work...