First, the map has to contain water. Without a body of water there is nowhere to place one.
Where water is present, you build the dockyard on the land itself using labour units, the same as other structures. Assign workers to the site and construction proceeds from there.