It might be as simple as https://github.com/baosystems/docker-postgis/blob/multiarch/.github/workflows/multiarch.yml