added postfix, z-push, dagent
This commit is contained in:
@@ -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"]
|
||||
3
postfix/entrypoint.sh
Normal file
3
postfix/entrypoint.sh
Normal file
@@ -0,0 +1,3 @@
|
||||
#!/usr/bin/env sh
|
||||
set -e
|
||||
exec "$@"
|
||||
Reference in New Issue
Block a user