The standard example, II.2.3.2 in Hartshorne, is to consider a DVR $A$ (take $A = \mathbb{C}[t]_{(t)}$ for concreteness, if you like) with fraction field $K$. You can define a morphism of ringed spaces $\operatorname{Spec} K \to \operatorname{Spec} A$ whose image is the _closed_ point. The map of local rings there is just the inclusion $A \subset K$.