From d0e6d2e1f177cfe533ea7819bf79b0469b8d0cc2 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Mon, 13 Oct 2014 19:24:09 -0400 Subject: Add Docker config file and documentation --- Dockerfile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Dockerfile (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..29d0e9c8 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,18 @@ +FROM ubuntu:14.04 +MAINTAINER Frederic Guillot + +RUN apt-get update && apt-get install -y apache2 php5 php5-sqlite git && apt-get clean +RUN echo "ServerName localhost" >> /etc/apache2/apache2.conf +RUN cd /var/www && git clone https://github.com/fguillot/kanboard.git +RUN rm -rf /var/www/html && mv /var/www/kanboard /var/www/html +RUN chown -R www-data:www-data /var/www/html/data + +EXPOSE 80 + +ENV APACHE_RUN_USER www-data +ENV APACHE_RUN_GROUP www-data +ENV APACHE_LOG_DIR /var/log/apache2 +ENV APACHE_LOCK_DIR /var/lock/apache2 +ENV APACHE_PID_FILE /var/run/apache2.pid + +CMD /usr/sbin/apache2ctl -D FOREGROUND -- cgit v1.2.3