D..
It's not really being spoiled. It's more about a habit. You have to change the habit.
Start with putting her in the crib. Sit in the floor and put your hand in between the slats and touch her leg. Only her leg. She'll stand up to cry, but don't get out of the floor. Stroke her leg. Don't talk to her. She will eventually lay down in order to be closer to you. Only touch her leg. If you cannot do this, don't start it because she will only learn that crying HARDER gets you to cave. So stay strong and only touch her leg.
It will take perserverence to break the habit of you holding her. It will also take time. She will continue to cry for a while. You are there with her. It's okay. The crying will eventually last a lot less and then you can just sit there without touching her. Eventually you can tell her goodnight and leave the room. That might elicit crying, but by then, it will be okay.
You won't want to go to bed yourself until she is asleep, so start the process before it's your own bedtime.
Good luck,
Dawn