summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-07-19 10:45:45 -0400
committerFrederic Guillot <fred@kanboard.net>2015-07-19 10:45:45 -0400
commitabb0a9bba426702e035563cf52d8482026f3717e (patch)
treed4e859502cd73be2ca3d79b58b354e3cd7c0ded5 /Dockerfile
parent074cfa5d7a311f07d33b461ebf0700443de7249f (diff)
Update Docker config and doc
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Dockerfile b/Dockerfile
index c278fb6c..7f49d373 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -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