Variations of this idea have come up before, they all have cool little extras to them though;
-Docking a ship to a shipyard would cause it to unbuild/rebuild to the blueprint, allowing the shipyard to also work as a repair yard for damaged ships (still limited by the build rate and availability...