Docker hub contains several versions(tag) of Postgres db such as:
What is diff between postgres version 12.3 and 12.3-alpine?
Alpine is a much smaller version of Linux, it results in a smaller container than the full postgres image. It is argued that because of its small size, alpine is also more secured. Although one disadvantage of alpine is that it contains a lot less functionality than a docker image running the full Linux OS.