| # debian.sh --arch 'amd64' out/ 'bookworm' '@1762202650' |
| LABEL maintainer=https://github.com/aaPanel/BillionMail |
| ARG DEBIAN_FRONTEND=noninteractive |
| ENV LC_ALL=C |
| RUN |1 DEBIAN_FRONTEND=noninteractive /bin/sh -c dpkg-divert --local --rename --add /sbin/initctl && dpkg-divert --local --rename --add /usr/bin/ischroot && ln -sf /bin/true /sbin/initctl && ln -sf /bin/true /usr/bin/ischroot # buildkit |
| COPY postfix.sh /postfix.sh # buildkit |
| COPY stop-supervisor.sh /stop-supervisor.sh # buildkit |
| COPY rotate_log.sh /rotate_log.sh # buildkit |
| RUN |1 DEBIAN_FRONTEND=noninteractive /bin/sh -c groupadd -g 102 postfix && groupadd -g 103 postdrop && useradd -g postfix -u 101 -d /var/spool/postfix -s /usr/sbin/nologin postfix && apt-get update && apt-get install -y --no-install-recommends --allow-downgrades --allow-remove-essential --allow-change-held-packages ca-certificates curl dirmngr dnsutils gnupg libsasl2-modules postgresql-client postfix postfix-pgsql postfix-pcre sasl2-bin sudo supervisor rsyslog telnet net-tools tzdata cron && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && chmod +x /postfix.sh /stop-supervisor.sh /rotate_log.sh # buildkit |
| COPY supervisord.conf /etc/supervisor/supervisord.conf # buildkit |
| CMD ["/usr/bin/supervisord" "-c" "/etc/supervisor/supervisord.conf"] |