-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (19 loc) · 837 Bytes
/
Dockerfile
File metadata and controls
25 lines (19 loc) · 837 Bytes
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
FROM php:5.6-apache
MAINTAINER Benoit NORRIN <benoit@norrin.fr>
RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
RUN a2enmod rewrite
ENV GITLIST_VERSION master
RUN mkdir -p /home/git/repositories/ \
&& cd /home/git/repositories/ \
&& git --bare init foo
RUN curl -o /tmp/gitlist.tar.gz -SL https://s3.amazonaws.com/gitlist/gitlist-${GITLIST_VERSION}.tar.gz \
&& tar -xzf /tmp/gitlist.tar.gz -C /tmp/ \
&& mv /tmp/gitlist/.htaccess /tmp/gitlist/* /var/www/html/ \
&& rm -rf /tmp/gitlist /tmp/gitlist.tar.gz \
&& chown -R www-data:www-data /var/www/html/ \
&& cd /var/www/html/ \
&& mkdir cache \
&& chmod 777 cache \
&& cp /var/www/html/config.ini-example /var/www/html/config.ini
VOLUME /var/www/html
WORKDIR /var/www/html/