1
0
Fork 0
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

23 Zeilen
859 B

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 <andrey.arapov@nixaid.com>
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