You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

20 lines
668 B

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 \
&& ln -s /usr/share/mailgraph/mailgraph.css /var/www/html/mailgraph.css \
&& sed -i 's|/var/lib/mailgraph|/tmp/rrd|g' /usr/share/mailgraph/mailgraph.cgi \
&& sed -i 's|mailgraph.css|/mailgraph.css|' /usr/share/mailgraph/mailgraph.cgi
VOLUME ["/tmp/mail.log", "/tmp/rrd"]
CMD ["/usr/bin/supervisord"]
EXPOSE 80