The calculated distance (air line) between Karosta and Riga is approximately 120 miles respectively 194 kilometers.
By car or train, the actual journey to Riga is certainly longer, as only the direct route (as the crow flies) between Karosta and Riga has been calculated here.