advice / help

I don't have many girl friends to talk to about this stuff so please no negativity. I am at a loss of what to do. I am 21. My boyfriend and I are having a baby girl in August! Since moving in together and getting pregnant our relationship has gone down hill. My boyfriend enjoys drinking and smoking weed with friends several times a week. He never is really home and I'm usually alone at the house by myself. When he is drinking or smoking he is incredibly mean to me. Last night he told me while drinking he doesn't want to be a dad, that he didn't ask for this life, and that he just wants to be a kid. (Among many other horrible things). I was throwing up and called him and asked him to come home to help out as it was really bad and those are the responses I got from him. Of course this is not the first time something like this has happened. I wish I had enough room to go into all of the things he's put me through in my pregnancy alone. My mom wants me to move home and break up with him. I know it my head that is the best idea for my child as he has proved he is not ready to be a dad and a partner to me. But I keep holding onto the idea of having a family unit for my little girl which is why I keep trying. 
What should I do? I'm tired of crying over this but I am at a loss. I feel like a failure for my daughter if I give up before she's even here.