A two container setup can build the new container while the old one keeps running, so there’s only a minute or so if downtime while the new container cracks up.
That’s a very kind rebuild time. I guess you’re on pi or something else that’s very slow?
Usually if there is a yml config issue you get notice right away.