Beyond the Sea
(2004)

Bobby Darin (Kevin Spacey) sets things right in his life by returning from seclusion and reuniting with his wife Sandra Dee (Kate Bosworth) and his son.

He has become increasingly ill and performs for one final time accompanied by a chorus.  He eventually dies but goes out by singing with his childhood self in a big tap number.

Thanks Atom12!