Best treatment is cool compresses
, and very good hand washing
, especially avoid touching your affected eye
and anything else. Be sure other family members don't use the same bath or face towels, as it can spread.
Occasionally, it can be part of a bacterial sinus infection. If the mucus is greenish see your doctor.