I have visited Dubrovnik and several prime cruise city.
Good idea but I enjoy the planning so would never consider a cruise of any kind.
And you see very little of Dubrovnik even in seven or eight hours -- much more true of Stockholm and St. Petersburg. Even a much week is too little time.