Dotted Border into Rounded Rectangle

How do you make a perfect dotted border into the rounded rectangle without any blurry side like this:


I would glad if you help me with this :D