Updated

The stock market is closing at an all-time high after Greece reached a deal with creditors to extend its bailout.

The Dow Jones industrial average rose 154 points, or 0.9 percent, to end at a record 18,140 on Friday, edging past its previous closing high from December 26, 2014.

The Standard & Poor's 500 index climbed 12 points, or 0.6 percent, to 2,110. The Nasdaq jumped 31 points, or 0.6 percent, to 4,955. It is now within 93 points of its own record set in March 2000.

Greece and its creditors in the 19-nation eurozone reached an agreement Friday extending the country's rescue loans four months, a move that should ease concerns it was heading for the euro exit door.