A dram is a small unit of liquid measure. Bars, pubs, and taverns used to sell liquor by the dram. A similar term in a more modern language might be a shot.
A dram shop is a business establishment that sells alcoholic beverages, such as a bar, pub, tavern, club, or convenience store.