summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile37
1 files changed, 7 insertions, 30 deletions
diff --git a/Dockerfile b/Dockerfile
index aa9eb9cf..ebc87238 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,35 +1,12 @@
-FROM alpine:3.4
-MAINTAINER Frederic Guillot <fred@kanboard.net>
+FROM fguillot/alpine-nginx-php7
-RUN apk update && \
- apk add nginx bash ca-certificates s6 curl \
- php5-fpm php5-json php5-zlib php5-xml php5-dom php5-ctype php5-opcache php5-zip \
- php5-pdo php5-pdo_mysql php5-pdo_sqlite php5-pdo_pgsql php5-ldap \
- php5-gd php5-mcrypt php5-openssl php5-phar && \
- rm -rf /var/cache/apk/*
+COPY . /var/www/app
+COPY docker/kanboard/config.php /var/www/app/config.php
+COPY docker/crontab/cronjob.alpine /var/spool/cron/crontabs/nginx
+COPY docker/services.d/cron /etc/services.d/cron
-RUN 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/php5/conf.d/
-COPY .docker/php/php-fpm.conf /etc/php5/
-COPY .docker/nginx/nginx.conf /etc/nginx/
-COPY .docker/kanboard/config.php /var/www/kanboard/
-COPY .docker/crontab/cronjob.alpine /var/spool/cron/crontabs/nginx
-
-EXPOSE 80
+RUN cd /var/www/app && composer --prefer-dist --no-dev --optimize-autoloader --quiet install
+RUN chown -R nginx:nginx /var/www/app/data /var/www/app/plugins
VOLUME /var/www/kanboard/data
VOLUME /var/www/kanboard/plugins
-
-ENTRYPOINT ["/bin/s6-svscan", "/etc/services.d"]
-CMD []