-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
28 lines (21 loc) · 853 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
FROM legionus/altlinux-initroot:x86_64
USER root
RUN \
apt-get -y update;\
apt-get -y install mailman-nginx postfix-tls spawn-fcgi fcgiwrap supervisor rsyslog-classic rsyslog-extra gosu jq pwgen;\
apt-get -y clean;
RUN sed -i -e "s/^nodaemon=false/nodaemon=true/" /etc/supervisord.conf
RUN control postfix server
RUN echo 'NETWORKING="yes"' > /etc/sysconfig/network
RUN mkdir -p /var/lock/subsys
COPY --chown=root:root etc/*.conf /etc/
COPY --chown=root:root etc/rsyslog.d/*.conf /etc/rsyslog.d/
COPY --chown=root:mailman etc/mailman/*.py /etc/mailman/
COPY run.sh /
RUN chmod +x /run.sh
COPY --chown=root:root etc/supervisord.d/*.ini /etc/supervisord.d/
# forward request and error logs to docker log collector
RUN ln -sf /dev/stdout /var/log/nginx/access.log \
&& ln -sf /dev/stderr /var/log/nginx/nginx.error.log
EXPOSE 25
CMD ["/run.sh"]