Proper dialogue Class: creatIve writing by: johnna Mazzuca
The answer to this question would be the second one because the period is on the inside of the quotation marks. This goes for any type of punctionation when ending a dialogue sentence.
Some additional information on dialogue and puncuation.