DALLAS, Texas (CBSDFW.COM) – Police arrested a man they say killed a friend after drinking beers with him.

An officer found Eduardo Ramirez-Rivera, 39, asleep outside the City of Dallas Library on Webb Chapel Road. He had a fresh-looking laceration under his eye and a bloody carpenter’s knife, according to an affidavit.

READ MORE: 'I Just Think It's A Bad Dream': Parent Reacts After Pregnant Mother Of 4 Killed On Texas Highway

The day before his arrest, police said Ramirez-Rivera stabbed Francisco Gonzalez multiple times in the parking lot of Torteria Guerro in the 9400 block of Larga Drive. Witnesses said the two men started fighting next to a dumpster after drinking together. Gonzalez collapsed and later died at Parkland Hospital.

Eduardo Ramirez-Rivera, 39 (credit: Dallas County Jail)

READ MORE: Denton Police Mourning Passing Of Detective Rodney Mooneyham To COVID

Ramirez-Rivera was captured on surveillance video fleeing the offense and had a fresh injury to his face.

After his arrest, Ramirez-Rivera was transported to the Dallas Police Homicide Unit for an interview. After waving his Miranda Rights, he admitted to getting into a fight and stabbing the victim. But Ramirez-Rivera claimed it was self defense since Gonzalez held a baseball bat.

Ramirez-Rivera was placed in jail for sleeping in public and murder.

MORE NEWS: Dak TD Pass To CeeDee Lifts Dallas Cowboys To 35-29 Overtime Win Over Patriots

His bond will be set by a magistrate.