forked from dgsb/docker-ikiwiki
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
43 lines (34 loc) · 1.22 KB
/
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
FROM debian:stretch-slim
MAINTAINER David Bariod <[email protected]>
RUN apt-get update && apt-get install -y \
git \
ikiwiki \
libsearch-xapian-perl \
libtext-csv-perl \
libxml-writer-perl \
lighttpd \
openssh-server \
supervisor \
xapian-omega
# Setup directories needed by ssh
RUN mkdir /var/run/sshd
RUN chmod 700 /var/run/sshd
# Activate the www-data account for ssh acces to the git repository
RUN chsh -s /bin/bash www-data
# Setup cgi for lighttpd
COPY 999-ikiwiki.conf /etc/lighttpd/conf-enabled
RUN chown www-data: /etc/lighttpd/conf-enabled/999-ikiwiki.conf
COPY ikiwiki.setup /etc/ikiwiki/ikiwiki.setup
RUN chown www-data: /etc/ikiwiki/ikiwiki.setup
# Setup the ikiwiki directories
RUN install -d -o www-data -g www-data /var/www/wiki-src /var/www/wiki.git /var/www/html /wiki-setup
# Startup program configuration
COPY setup.sh /wiki-setup
RUN chown www-data: /wiki-setup/setup.sh
RUN chmod 755 /wiki-setup/setup.sh
COPY ikiwiki_supervisord.conf /etc/supervisor/conf.d
# Add the volume from which the wiki repository will be retrieved from
VOLUME /wiki
EXPOSE 22
EXPOSE 80
CMD /wiki-setup/setup.sh && supervisord -n