summaryrefslogtreecommitdiff
path: root/packaging/docker/Dockerfile
blob: 39222ddd3aa5a2180a0cf2b378b2a2908bff0586 (plain)
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
# radsecproxy-web
#
# Generates static HTML from an ikiwiki git repo.
#

# Run as a "data volume container" (`docker run --name radsecproxy-web
# IMAGE') used by another container running a web server (`docker run
# -d --volumes-from radsecproxy-web --name my_web
# web_software_ndn). Note that the radsecproxy-web container will show
# in `docker ps -a' with status `Exited (0)'. It still exports
# /var/www/radsecproxy to the my_web container.

FROM web_software_ndn
MAINTAINER Linus Nordberg <linus+radsecproxy@nordu.net>

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/radsecproxy-web
RUN cd /usr/local/src/radsecproxy-web && git pull

VOLUME /var/www/radsecproxy
ADD mkhtml.sh /
ENTRYPOINT ["/mkhtml.sh"]