It is used to tell multiple people to sleep, with a formal tone, like you might use with guests or someone you don't know well.
Here are some examples:
* Dormez bien! (Sleep well!)
* Les enfants, dormez maintenant. (Children, sleep now.)
* Je vous prie de dormez. (I beg you to sleep.)