Migrate NextcloudPi to 64 bit with major version skip

I’ve been using the 32bit docker version of Nextcloudpi on a raspberry.

Since it was 32bit, I wasn’t able to upgrade mextcloud for a longer time. Thus I am still stuck on 20.0.4.0.

Now that the 64 bit raspberry OS is officially out, I would like to upgrade.

However only the most recent docker image of nextcloudpi is available with the latest nextcloud version. How can I then upgrade major version by major version, i.e. by first updating my nextcloud to the last version of the current major version, then upgrading to the next major version, etc?