forked from dawnbreak/docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.trusty
31 lines (25 loc) · 1.05 KB
/
Dockerfile.trusty
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
28
29
30
31
FROM ubuntu:14.04
RUN apt-get update -qq && \
apt-get install -y apache2 php5 php5-sqlite php5-mysql php5-pgsql php5-gd curl unzip && \
apt-get clean && \
echo "ServerName localhost" >> /etc/apache2/apache2.conf && \
sed -ri 's/AllowOverride None/AllowOverride All/g' /etc/apache2/apache2.conf && \
a2enmod rewrite && \
curl -sS https://getcomposer.org/installer | php -- --filename=/usr/local/bin/composer
RUN cd /var/www \
&& rm -rf /var/www/html \
&& curl -sLO https://github.com/kanboard/kanboard/archive/master.zip \
&& unzip -qq master.zip \
&& rm -f *.zip \
&& mv kanboard-master html \
&& cd /var/www/html && composer --prefer-dist --no-dev --optimize-autoloader --quiet install \
&& chown -R www-data:www-data /var/www/html/data
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
EXPOSE 80
VOLUME /var/www/html/data
VOLUME /var/www/html/plugins
CMD /usr/sbin/apache2ctl -D FOREGROUND