postfix/Dockerfile

23 lines
859 B
Docker
Raw Permalink Normal View History

2022-12-06 12:05:34 +00:00
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
2016-06-19 21:55:47 +00:00
MAINTAINER Andrey Arapov <andrey.arapov@nixaid.com>
2018-12-16 21:39:36 +00:00
RUN apk update && \
2016-06-19 21:55:47 +00:00
apk upgrade && \
2022-12-06 12:05:34 +00:00
apk add postfix runit socklog tzdata ca-certificates spamassassin-client && \
2018-12-17 12:33:44 +00:00
rm -rf /etc/service
2016-06-19 21:55:47 +00:00
2022-12-06 12:05:34 +00:00
#RUN adduser -D -H -u 1005 -G postfix -s /sbin/nologin spamc
2018-12-16 21:39:36 +00:00
# tzdata - for passing TZ environment variable.
2018-12-17 12:33:44 +00:00
# socklog - collect all logs which come to /dev/log.
2016-06-19 21:55:47 +00:00
2018-12-17 12:33:44 +00:00
COPY service /etc/service
2016-06-19 21:55:47 +00:00
ENTRYPOINT runsvdir -P /etc/service
2018-12-17 12:33:44 +00:00
#ENTRYPOINT chpst -Unobody socklog unix /dev/log & postfix start-fg