Gosu binary in arm64 image

It looks like there are some issues with the container image builds (percona/percona-distribution-postgresql), where the AMD64 version of gosu is included in the ARM64 images leading to the container not starting up properly and showing an exec format error. I’ve had a look at a handful of 17.x/17.x-arm64 builds and all have the same issue from what I can see.

I’ve worked around it for now with a custom dockerfile that fetches the correct gosu version, but is this something you might be able to have a look at?

Dockerfile
FROM percona/percona-distribution-postgresql:17-arm64

ADD --chown=1001:1001 https://github.com/tianon/gosu/releases/download/1.17/gosu-arm64 /usr/bin/gosu

RUN chmod +x /usr/bin/gosu

Hey @scheibling
Thanks for your report. We have created a jira task to fix it.