FROM alpine:3.17 # DO NOT set alpine:3.13, 3.14, as they BREAK postfix smptd ! # postfix_1 | mail.err: Jul 27 12:49:52 postfix/trivial-rewrite[84]: error: unsupported dictionary type: hash # https://gitlab.alpinelinux.org/alpine/aports/-/issues/12381 # https://gitlab.alpinelinux.org/alpine/aports/-/issues/12085 # workaround: change btree and hash to lmdb MAINTAINER Andrey Arapov RUN apk update && \ apk upgrade && \ apk add postfix runit socklog tzdata ca-certificates spamassassin-client && \ rm -rf /etc/service #RUN adduser -D -H -u 1005 -G postfix -s /sbin/nologin spamc # tzdata - for passing TZ environment variable. # socklog - collect all logs which come to /dev/log. COPY service /etc/service ENTRYPOINT runsvdir -P /etc/service #ENTRYPOINT chpst -Unobody socklog unix /dev/log & postfix start-fg