I can tell you that what works for me is to be polite but distant. I’ll say “good morning!” to my coworkers and “have a good night!” At the end of the shift. I’ll be helpful when needed, and I’ll do my best to work well with others.
I already do this, but to some where I work, it’s not enough.