Unfortunately, there is no train station into the city, but there is an airport within 30 mins driving.
Dubrovnik Airport: Dubrovnik Ruđer Bošković Airport, also referred to as Čilipi Airport
How do I get around in Dubrovnik?
Hotel staff here are extremely helpful in setting up shuttles/cabs for their guests. There is also Uber in the city. The city is easy to walk and once in/around the Old Town everything is very convenient and close.