|
@@ -39,21 +39,24 @@ RUN groupadd -g 102 postfix \
|
|
|
|
|
|
COPY supervisord.conf /etc/supervisor/supervisord.conf
|
|
COPY supervisord.conf /etc/supervisor/supervisord.conf
|
|
COPY syslog-ng.conf /etc/syslog-ng/syslog-ng.conf
|
|
COPY syslog-ng.conf /etc/syslog-ng/syslog-ng.conf
|
|
|
|
+COPY syslog-ng-redis_slave.conf /etc/syslog-ng/syslog-ng-redis_slave.conf
|
|
COPY stop-supervisor.sh /usr/local/sbin/stop-supervisor.sh
|
|
COPY stop-supervisor.sh /usr/local/sbin/stop-supervisor.sh
|
|
COPY postfix.sh /opt/postfix.sh
|
|
COPY postfix.sh /opt/postfix.sh
|
|
COPY rspamd-pipe-ham /usr/local/bin/rspamd-pipe-ham
|
|
COPY rspamd-pipe-ham /usr/local/bin/rspamd-pipe-ham
|
|
COPY rspamd-pipe-spam /usr/local/bin/rspamd-pipe-spam
|
|
COPY rspamd-pipe-spam /usr/local/bin/rspamd-pipe-spam
|
|
COPY whitelist_forwardinghosts.sh /usr/local/bin/whitelist_forwardinghosts.sh
|
|
COPY whitelist_forwardinghosts.sh /usr/local/bin/whitelist_forwardinghosts.sh
|
|
COPY stop-supervisor.sh /usr/local/sbin/stop-supervisor.sh
|
|
COPY stop-supervisor.sh /usr/local/sbin/stop-supervisor.sh
|
|
|
|
+COPY docker-entrypoint.sh /docker-entrypoint.sh
|
|
|
|
|
|
RUN chmod +x /opt/postfix.sh \
|
|
RUN chmod +x /opt/postfix.sh \
|
|
/usr/local/bin/rspamd-pipe-ham \
|
|
/usr/local/bin/rspamd-pipe-ham \
|
|
/usr/local/bin/rspamd-pipe-spam \
|
|
/usr/local/bin/rspamd-pipe-spam \
|
|
/usr/local/bin/whitelist_forwardinghosts.sh \
|
|
/usr/local/bin/whitelist_forwardinghosts.sh \
|
|
/usr/local/sbin/stop-supervisor.sh
|
|
/usr/local/sbin/stop-supervisor.sh
|
|
|
|
+RUN rm -rf /tmp/* /var/tmp/*
|
|
|
|
|
|
EXPOSE 588
|
|
EXPOSE 588
|
|
|
|
|
|
-CMD exec /usr/bin/supervisord -c /etc/supervisor/supervisord.conf
|
|
|
|
|
|
+ENTRYPOINT ["/docker-entrypoint.sh"]
|
|
|
|
|
|
-RUN rm -rf /tmp/* /var/tmp/*
|
|
|
|
|
|
+CMD exec /usr/bin/supervisord -c /etc/supervisor/supervisord.conf
|