The official Postgres images support an alpine base image build: https://github.com/docker-library/postgres/tree/master/16/alpine3.18 Alpine is much smaller than debian and has many fewer vulnerabilities