You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
859 B

1 year ago
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
8 years ago
MAINTAINER Andrey Arapov <andrey.arapov@nixaid.com>
5 years ago
RUN apk update && \
8 years ago
apk upgrade && \
1 year ago
apk add postfix runit socklog tzdata ca-certificates spamassassin-client && \
5 years ago
rm -rf /etc/service
8 years ago
1 year ago
#RUN adduser -D -H -u 1005 -G postfix -s /sbin/nologin spamc
5 years ago
# tzdata - for passing TZ environment variable.
5 years ago
# socklog - collect all logs which come to /dev/log.
8 years ago
5 years ago
COPY service /etc/service
8 years ago
ENTRYPOINT runsvdir -P /etc/service
5 years ago
#ENTRYPOINT chpst -Unobody socklog unix /dev/log & postfix start-fg