Ronaldo was in the thick of things
Dunga's boys though had more chances in the opening 45 minutes and Nilmar's strike in the 30th minute crashed on the left upright after hitting the Portuguese keeper.
Nine minutes later, Brazil had a golden chance to surge ahead but Luis Fabiano's free header from a high cross off a Maicon pass went just wide of the bar.
Portugal put early pressure after resumption with captain Cristiano Ronaldo in the thick of things.
In the injury time, Ramires, who came in for Julio Baptista in the 82nd minute, had a shot from outside the Portugal box and after deflection from a defender the ball looked like entering the net before keeper Eduardo made a brilliant save.
Image: Ronaldo with Lucio and Gilberto Silv