An incredible match which saw Dundee completely dominate proceedings but end up heading south without anything to show for it produced one of the Blue Toon’s best ever results in the senior ranks.
They defended superbly with new loan signing from Celtic, Fiacre Kelleher (pictured inset), slotting in like a veteran rather than the 20 year old that he is.
The whole back line were magnificent and with Rory McAllister on fire up front a shock result sent Peterhead into their final group game with the chance of automatic qualification in their own hands.
The visitors were first to threaten after seven minutes, Rory Loy firing a loose ball over from 20 yards after a cross was partially cleared into his path.
In the 19th minute a free kick by Gregg Stewart 25 yards out to the left of goal was played towards the back post but defender Ryan Strachan cleared for a corner as Julen Etxabeguren waited to pounce.
Three minutes later Craig Wighton attempted to chip keeper Graeme Smith but failed to get enough on the shot and Smith gathered with ease.
In between a Jamie Stevenson free kick was head flicked goal wards by Scott Rumsby but straight at Scott Bain.
Dundee continued to threaten and Loy headed powerfully and just beyond the far post following a corner kick.
As half time approached Scott Rumsby saved the day with a perfectly timed tackle on Wighton by the penalty spot then moments later Darren O’dea bulleted a header from a Stewart corner but Smith saved brilliantly with a reflex block.
Dundee started the second half on the front foot and Danny Williams dribbled his way into the area but his shot went into the sidenetting.
A neat build up by the home side produced their best chance on the hour, Jordan Brown shooting wildly over from the edge of the box.
Out of the blue we finally had a goal after 63 minutes but it was for the Blue Toon despite all the possession from the visitors.
Rory McAllister was tripped 20 yards out and slightly to the left if goal. The striker took the free kick himself and gambled that the Dundee wall would jump, which they did and the ball took a slight deflection off a stray foot as it went into the net.
Michael Duffy came off the bench and whipped a free kick up and over following a rash challenge by fellow sub Samir Nasoor.
McAllister tried his luck with a low shot from distance on the turn but the ball skidded wide as the rain poured down then Nathan Blockley almost scored a wonder goal from 35 yards as he tried to chip over the stranded Bain.
A minute from time it was all over. McAllister was sent sprawling by Bain after bearing in on goal and he picked himself up before coolly clipping in the spot kick with his usual aplomb.
But wait...Straight from the restart Dundee went up the other end and Stewart touched in a cross from close range to send the home nerves jangling for the remaining added minutes.