# radsecproxy-web
#
# Generates static HTML from an ikiwiki git repo.
#
# Run as a "data volume container" (`docker create -v
# /var/www/radsecproxy --name radsecproxy-web IMAGE /mkhtml.sh') used
# by another container running a web server (`docker run -d
# --volumes-from radsecproxy-web --name my_web lighttpd')
FROM web_software_ndn
MAINTAINER Linus Nordberg
RUN apt-get update
RUN echo 'debconf debconf/frontend select noninteractive' | debconf-set-selections
RUN apt-get -y -q install ikiwiki make
RUN [ -d /usr/local/src/radsecproxy-web ] || git clone https://git.nordu.net/radsecproxy-web.git /usr/local/src/
WORKDIR /usr/local/src/radsecproxy-web
RUN git pull
WORKDIR /root
VOLUME /var/www/radsecproxy
ADD mkhtml.sh /
ENTRYPOINT ["/mkhtml.sh"]