FROM debian:buster EXPOSE 24 RUN DEBIAN_FRONTEND=noninteractive && \ apt-get update && \ apt-get install -y --no-install-recommends \ postgrey && \ apt-get clean && \ rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* VOLUME /var/lib/postgrey ENTRYPOINT ["postgrey", "--inet=0.0.0.0:24"]