The only reason they I know that you’d need to rebuild to get a new certificate is that your base image is too old and doesn’t have the new root certificate (that expired in October, I think).
I think that you need to rebuild.
It might be possible to contrive to upgrade the running container, but I think that I tried doing that a few times and failed.
And running an old version of Discourse isn’t a sustainable solution anyway.