$\def\aeeq{\stackrel{\mathrm{a.e.}}{=}}\def\d{\mathrm{d}}$Denote by $C(x)$ the Cantor function on $[0, 1]$ and define$$
h(x) = \begin{cases}
\dfrac{1}{2} C(2x); & 0 \leqslant x \leqslant \dfrac{1}{2}\\
\dfrac{1}{2} C(2(1 - x)); & \dfrac{1}{2} < x \leqslant 1
\end{cases},
$$
then $h$ is continuous, $h(0) = h(1) = 0$, $0< h(x) \leqslant 1$ for $0 < x < 1$, $h' \aeeq 0$, and the variation of $h$ on $[0, 1]$ is$$
V_{0, 1}(h(x)) = \frac{1}{2} V_{0, \frac{1}{2}}(C(2x)) + \frac{1}{2} V_{0, \frac{1}{2}}(C(2(1 - x))) = \frac{1}{2} V_{0, 1}(C(x)) + \frac{1}{2} V_{0, 1}(C(x)) = 1.
$$
Now, denote $x_0 = 0$ and take$$
f(x) = \sum_{k = 1}^∞ (-1)^k (x_k - x_{k - 1}) h\left( \frac{x - x_{k - 1}}{x_k - x_{k - 1}} \right) I_{[x_{k - 1}, x_k)}(x),
$$
where $I_A$ is the indicator function. Note that $f(x)$ is continuous at $x = 1$ since $x_n - x_{n - 1} → 0\ (n → ∞)$ and $0 \leqslant h(x) \leqslant 1$ for $0 \leqslant x \leqslant 1$, thus $f$ is continuous on $[0, 1]$. The variation of $f$ on $[0, 1]$ is\begin{align*}
V_{0, 1}(f(x)) &= \sum_{k = 1}^∞ (x_k - x_{k - 1}) V_{x_{k - 1}, x_k} \left( h\left( \frac{x - x_{k - 1}}{x_k - x_{k - 1}} \right) \right)\\
&= \sum_{k = 1}^∞ (x_k - x_{k - 1}) V_{0, 1}(h(x)) = \sum_{k = 1}^∞ (x_k - x_{k - 1}) = \lim_{n → ∞} x_n = 1.
\end{align*}
Also, $f' \aeeq 0$. Thus,$$
g(x) = f(x) - f(0) - \int_0^x f'(s) \,\d s = f(x). \quad \forall x \in [0, 1]
$$
For any $n \geqslant 1$, $g(x_n) = f(x_n) = (-1)^{n + 1} (x_{n + 1} - x_n) h(0) = 0$. If $n$ is odd, then$$
g(x)\Bigr|_{(x_n, x_{n + 1})} = f(x) \Bigr|_{(x_n, x_{n + 1})} = (-1)^{n + 1} (x_{n + 1} - x_n) h\left( \frac{x - x_n}{x_{n + 1} - x_n} \right) > 0.
$$
If $n$ is even, then$$
g(x)\Bigr|_{(x_n, x_{n + 1})} = f(x) \Bigr|_{(x_n, x_{n + 1})} = (-1)^{n + 1} (x_{n + 1} - x_n) h\left( \frac{x - x_n}{x_{n + 1} - x_n} \right) < 0.
$$
Therefore, this $f$ satisfies all the requirements.
Any function of bounded varaition is bounded. Consider the points $x_n=\frac 1 {\sqrt {(4n+1)/2}}$. Note that $|g(x_n)|=\frac {(4n+1)\pi} 2$. It follows that $g$ is not bounded, hence not of bounded variation.
Best Answer
You have more or less resolved this with the observation that $\inf_{x \in [0,1]} f(x)=0$. Just take the simplest such function, e.g. $$f(x)= \begin{cases}\sqrt{(x)},\qquad x\neq0,\\1,\qquad x=0.\end{cases}$$
Apart from your observation, the only consideration is making sure that the reciprocal is integrable.
Note that any continuous $f$ with the property $\inf_{x \in [0,1]} f(x)=0$, will not be positive.