Update Docker config and doc

This commit is contained in:
Frederic Guillot
2015-07-19 10:45:45 -04:00
parent 074cfa5d7a
commit abb0a9bba4
2 changed files with 26 additions and 7 deletions

View File

@@ -4,11 +4,13 @@ MAINTAINER Frederic Guillot <fred@kanboard.net>
RUN apt-get update && apt-get install -y apache2 php5 php5-gd php5-sqlite git curl && apt-get clean
RUN echo "ServerName localhost" >> /etc/apache2/apache2.conf
RUN curl -sS https://getcomposer.org/installer | php -- --filename=/usr/local/bin/composer
RUN cd /var/www && git clone https://github.com/fguillot/kanboard.git
RUN cd /var/www/kanboard && composer install
RUN cd /var/www && git clone --depth 1 https://github.com/fguillot/kanboard.git
RUN cd /var/www/kanboard && composer --prefer-dist --no-dev --optimize-autoloader --quiet install
RUN rm -rf /var/www/html && mv /var/www/kanboard /var/www/html
RUN chown -R www-data:www-data /var/www/html/data
VOLUME /var/www/html/data
EXPOSE 80
ENV APACHE_RUN_USER www-data