postfix/Dockerfile

36 lines
718 B
Docker
Raw Normal View History

2021-08-23 13:20:57 +00:00
FROM alpine:3.14 as builder
2016-07-11 10:39:42 +00:00
2019-02-18 13:48:21 +00:00
RUN apk add --no-cache \
g++ \
make \
libmilter-dev \
spamassassin-client
2017-09-25 09:15:34 +00:00
2016-07-11 10:39:42 +00:00
RUN mkdir /tmp/spamass-milter
2017-06-13 10:37:27 +00:00
RUN wget -qO- https://download.savannah.gnu.org/releases/spamass-milt/spamass-milter-0.4.0.tar.gz | tar -xz -C /tmp/spamass-milter --strip 1
2016-07-11 10:39:42 +00:00
WORKDIR /tmp/spamass-milter
2018-11-16 07:49:31 +00:00
2019-02-18 13:48:21 +00:00
RUN ./configure && make
FROM thallian/confd-env:latest
COPY --from=builder /tmp/spamass-milter/spamass-milter /bin/spamass-milter
RUN apk add --no-cache \
postfix \
2021-08-23 13:20:57 +00:00
postfix-pgsql \
2019-02-18 13:48:21 +00:00
openssl \
libstdc++ \
2021-08-24 08:41:54 +00:00
libmilter
2019-02-18 13:48:21 +00:00
RUN addgroup -g 2222 access
RUN addgroup postfix access
2016-07-06 09:42:10 +00:00
2016-07-06 12:14:32 +00:00
RUN chown root /var/spool/postfix/
RUN chown root /var/spool/postfix/pid
2016-07-06 09:42:10 +00:00
EXPOSE 25 587
ADD /rootfs /
2021-08-24 08:15:36 +00:00