added postfix, z-push, dagent

This commit is contained in:
andreas
2023-04-04 20:19:20 +00:00
parent 950fbccf48
commit 109098ae55
9 changed files with 62 additions and 51 deletions

View File

@@ -3,17 +3,8 @@ FROM alpine:latest
# install apt packages
ENV TZ Europe/Berlin
RUN apk add --no-cache postfix spamassassin rsyslog logrotate xz
# install s6 process manager
ADD https://github.com/just-containers/s6-overlay/releases/download/v3.1.1.2/s6-overlay-noarch.tar.xz /tmp
ADD https://github.com/just-containers/s6-overlay/releases/download/v3.1.1.2/s6-overlay-x86_64.tar.xz /tmp
RUN <<EOF
tar -C / -Jxpf /tmp/s6-overlay-noarch.tar.xz
tar -C / -Jxpf /tmp/s6-overlay-x86_64.tar.xz
EOF
COPY ./etc/s6-overlay /etc/s6-overlay
# install kopano core
WORKDIR /root
COPY --chmod=0775 entrypoint.sh /entrypoint.sh
EXPOSE 25
VOLUME /var/spool/postfix
# HEALTHCHECK --start-period=350s CMD echo QUIT|nc localhost 25|grep "220 .* ESMTP Postfix"
ENTRYPOINT ["/init"]
ENTRYPOINT ["/entrypoint.sh"]
CMD ["postfix", "start-fg"]