The Death Valley Railroad (DVRR) was a narrow gauge railroad that operated in California's Death Valley to carry borax with the route running from Ryan, California to the mines at Ryan C., located just east of Death Valley National Park, to Death Valley Junction, a distance of approximately 20 miles .