forked from amclain/docker-hgweb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
27 lines (20 loc) · 785 Bytes
/
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
# http://mercurial.selenic.com/wiki/HgWebDirStepByStep#Directory_Structure
FROM ubuntu:16.04
MAINTAINER Alex McLain <[email protected]>
RUN apt-get -qq update
RUN apt-get -y install apache2 apache2-utils curl mercurial php php-cli php-mcrypt
# Configure hgweb
ADD hg/add.php /etc/default/hgweb/hg/
ADD hg/hgweb.config /etc/default/hgweb/hg/
ADD hg/hgweb.cgi /etc/default/hgweb/hg/
ADD hg/hgusers /etc/default/hgweb/hg/
# Configure Apache
ADD apache/hg.conf /etc/default/hgweb/apache/
RUN rm /etc/apache2/sites-enabled/*
RUN a2enmod rewrite && a2enmod cgi
ADD load-default-scripts /bin/
RUN chmod u+x /bin/load-default-scripts
VOLUME /var/hg
VOLUME /etc/apache2/sites-available
EXPOSE 80
CMD load-default-scripts && service apache2 reload; apache2ctl -DFOREGROUND