Leeds Crown Court heard up to 30 people looked on as the 31-year-old victim suffered a broken jaw and cheekbone as he was repeatedly punched and kicked.
The court heard a number of people were involved in the violence and others ignored the injured man’s pleas for help when he begged them to call police.
One man, Simon Lawrie, 31, came out of the pub and shouted abuse before hitting the man as he lay injured over a wall.
He lost consciousness from the blow.
Richard Walters, prosecuting, said the victim had been called to deliver food to the Chequerfield Pub, Pontefract, at around 7.30pm on May 15 last year.
When he arrived outside two men began to punch him repeatedly. He was then dragged from his car and held as more punches were thrown at his face.
Mr Walters said a woman came out of the pub and asked the two attackers why it was taking so long to kill the victim and shouted more racist abuse at him.
He was then kicked repeatedly before Lawrie came out of the pub and joined the attack.
The victim briefly lost consciousness but was then able to crawl. He screamed at onlookers to ring the police but those witnessing the attack ignored his pleas.
The driver eventually ran through the gardens of nearby homes and was eventually helped by someone who took him inside his home and blocked the entrance to prevent further attacks.
Lawrie, of Monkhill Avenue, Pontefract, was arrested and said he had attacked the man after his 10-year-old daughter had gone into the pub and told him that a man had asked her to get into his car.
He pleaded guilty to racially aggravated assault occasioning actual bodily harm. A month before the attack Lawrie had been made the subject of a community order for punching a man in the Malt Shovel pub, Pontefract.
Sean Smith, mitigating, said Lawrie had overreacted to the information given to him by his daughter.
He added: “There had been concerns in the local area that individuals connected to a certain pizza parlour had been carrying out this type of behaviour in the locale.”
Mr Walters said there was no evidence that the victim had behaved inappropriately and he had only been working for the fast food firm for five days before the incident.
Lawrie was given an 18 month prison sentence, suspended for two years, and ordered to do 150 hours of unpaid work.
Lawrie was also told to pay £500 compensation to the victim.
Recorder Nigel Sangster, QC, said: “It is a matter of shame that so many people watched this. The people who did not help should be ashamed of their behaviour.
“The man who took him in should be praised.”