forked from kanboard/kanboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
33 lines (27 loc) · 1.23 KB
/
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
28
29
30
31
32
33
FROM gliderlabs/alpine:latest
MAINTAINER Frederic Guillot <[email protected]>
RUN apk-install nginx bash ca-certificates s6 curl \
php-fpm php-json php-zlib php-xml php-dom php-ctype php-opcache php-zip \
php-pdo php-pdo_mysql php-pdo_sqlite php-pdo_pgsql php-ldap \
php-gd php-mcrypt php-openssl php-phar \
&& curl -sS https://getcomposer.org/installer | php -- --filename=/usr/local/bin/composer
RUN cd /var/www \
&& curl -LO https://github.com/fguillot/kanboard/archive/master.zip \
&& unzip -qq master.zip \
&& rm -f *.zip \
&& mv kanboard-master kanboard \
&& cd /var/www/kanboard && composer --prefer-dist --no-dev --optimize-autoloader --quiet install \
&& chown -R nginx:nginx /var/www/kanboard \
&& chown -R nginx:nginx /var/lib/nginx
COPY .docker/services.d /etc/services.d
COPY .docker/php/conf.d/local.ini /etc/php/conf.d/
COPY .docker/php/php-fpm.conf /etc/php/
COPY .docker/nginx/nginx.conf /etc/nginx/
COPY .docker/kanboard/config.php /var/www/kanboard/
COPY .docker/kanboard/config.php /var/www/kanboard/
COPY .docker/crontab/kanboard /var/spool/cron/crontabs/nginx
EXPOSE 80
VOLUME /var/www/kanboard/data
VOLUME /var/www/kanboard/plugins
ENTRYPOINT ["/bin/s6-svscan", "/etc/services.d"]
CMD []