19 lines
511 B
Docker
19 lines
511 B
Docker
FROM debian:stretch
|
|
|
|
RUN apt-get update && apt-get -y install mailgraph lighttpd supervisor
|
|
|
|
ADD supervisord.conf /etc/supervisor/conf.d/supervisord.conf
|
|
|
|
RUN lighttpd-enable-mod cgi \
|
|
&& mkdir /tmp/rrd \
|
|
&& chmod 777 /tmp/rrd \
|
|
&& mkdir -p /var/www/html/cgi-bin/ \
|
|
&& ln -s /usr/share/mailgraph/mailgraph.cgi /var/www/html/cgi-bin/mailgraph.cgi \
|
|
&& sed -i 's|/var/lib/mailgraph|/tmp/rrd|g' /usr/share/mailgraph/mailgraph.cgi
|
|
|
|
VOLUME ["/tmp/mail.log", "/tmp/rrd"]
|
|
|
|
CMD ["/usr/bin/supervisord"]
|
|
|
|
EXPOSE 80
|