-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
27 lines (21 loc) · 867 Bytes
/
Dockerfile
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
26
27
FROM ubuntu:14.04
MAINTAINER Frederic Guillot <[email protected]>
# Setup Apache/PHP
RUN apt-get update && apt-get install -y apache2 php5 php5-gd php5-sqlite unzip wget && apt-get clean
RUN echo "ServerName localhost" >> /etc/apache2/apache2.conf && a2enmod rewrite
RUN sed -ri 's/AllowOverride None/AllowOverride All/g' /etc/apache2/apache2.conf
# Install Kanboard
RUN cd /tmp \
&& wget --quiet http://kanboard.net/kanboard-latest.zip \
&& unzip -qq kanboard-latest.zip \
&& cp -r kanboard/. /var/www/html \
&& chown -R www-data:www-data /var/www/html/data \
&& rm /var/www/html/index.html
VOLUME /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