Skip to content

Commit

Permalink
Firt commit
Browse files Browse the repository at this point in the history
  • Loading branch information
BenoitNorrin committed May 6, 2015
1 parent 682cf07 commit 7697e30
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
FROM php:5.6-apache

MAINTAINER Benoit NORRIN <[email protected]>

RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
RUN a2enmod rewrite

ENV GITLIST_VERSION 0.5.0

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/

0 comments on commit 7697e30

Please sign in to comment.