What is this on my daughters eye?

The first two pics were a few months ago and she developed an abscess/pimple on the inside (white dot you can see in first pic). This time it’s much more swollen and purpley on the outside. No pimple on inside but tender and hurts her when she blinks/touches it. I called pediatrician and we’ve been doing a warm compress