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