forked from dawnbreak/docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.centos6
31 lines (25 loc) · 1.11 KB
/
Dockerfile.centos6
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 centos:6
RUN yum update -y && \
yum install -y php php-mbstring php-pdo php-gd unzip curl && \
sed -ri 's/short_open_tag = Off/short_open_tag = On/g' /etc/php.ini && \
sed -ri 's/AllowOverride None/AllowOverride All/g' /etc/httpd/conf/httpd.conf && \
echo "ServerName localhost" >> /etc/httpd/conf/httpd.conf && \
curl -sS https://getcomposer.org/installer | php -- --filename=/usr/local/bin/composer
RUN cd /var/tmp \
&& 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 /var/www/html \
&& cd /var/www/html && composer --ignore-platform-reqs --prefer-dist --no-dev --optimize-autoloader --quiet install \
&& chown -R apache:apache /var/www/html/data \
&& chown -R apache:apache /var/www/html/plugins
ENV APACHE_RUN_USER apache
ENV APACHE_RUN_GROUP apache
ENV APACHE_LOG_DIR /var/log/httpd
ENV APACHE_LOCK_DIR /var/lock/httpd
ENV APACHE_PID_FILE /var/run/httpd.pid
EXPOSE 80
VOLUME /var/www/html/data
VOLUME /var/www/html/plugins
CMD /usr/sbin/httpd -D FOREGROUND