How do you train your infant to sleep through the night?

She’ll be 8 weeks tomorrow. She’s only slept through the night twice. Otherwise she wakes up usually once, maybe twice to feed.