If it just the lid, it is likely this
Blepharitis treatment
I had it once - soak a small piece of clean cloth in hot water and wipe the eyelid from the centre to the outside, several times a day.
.........
and don't use mascara (which is likely where you got the infection from)