We took the train ride across Panama to Panama City. It was a nice ride and very interesting. If I remember right, they served us a box lunch, too.
The only downfall is that we didn't get to experience the locks. Otherwise, it was a nice excursion that we booked on the ship.
Dave is right about the port. Shopping and food are available.