Cf. https://github.com/julmon/pg_activity
It is a very small image (~129MB uncompressed) available on docker hub based on Alpine Linux and using the last available release from the official PyPI repo of pg_activity.
docker run --rm -it tophfr/pg_activity --help
docker run --rm -it -e PGHOST=mypghost -e PGUSER=mypguser tophfr/pg_activity
Content type
Image
Digest
sha256:539b38710…
Size
32.4 MB
Last updated
almost 2 years ago
docker pull tophfr/pg_activity