Let the sequence $\{\phi_\epsilon\}$ be a mollifier. If $f$ is any continuous function, then the convolutions $g_\epsilon(x) := (f * \phi_\epsilon) (x) := \int f(y) \phi_\epsilon(x-y) dy$ converge uniformly on compact sets to $f$ as $\epsilon \rightarrow 0$.
In fact, we can choose $\phi_\epsilon=\epsilon^{-1} \phi(\epsilon^{-1}x)$, where $\phi$ has integral $\int_\mathbb{R} \phi(y)dy =1$. Then we have $$g_\epsilon (x) =\int_{-\epsilon}^\epsilon f(y) \phi_\epsilon(x-y) dy = \int_{-1}^1 f(x-\epsilon y) \phi(y) dy $$ and $$|g_\epsilon(x)-f(x)| \leq |\int_{-1}^1 f(x-\epsilon y) \phi(y) dy - f(x)| =\int_{-1}^1 \phi(y)|f(x-\epsilon y) - f(x)| dy$$
For $x \in K$, a compact set, $f$ is uniformly continuous, taking the limit as $\epsilon \rightarrow 0$ shows that $g_\epsilon \rightarrow f$ on $K$.