summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-06-05 11:30:31 -0400
committerFrederic Guillot <fred@kanboard.net>2016-06-05 11:30:31 -0400
commitf48e5456312ddb366f9b623cd97b0e740fe99d9e (patch)
treefcfcb125d5fd48eb18e7ed7e07e8c65ba9cda7d8
parent61d3683be4782c274cfcd9ff6ddfc2fbb1d6ffc9 (diff)
Upgrade Docker image to Alpine Linux 3.4
-rw-r--r--.docker/nginx/nginx.conf1
-rw-r--r--ChangeLog1
-rw-r--r--Dockerfile19
3 files changed, 13 insertions, 8 deletions
diff --git a/.docker/nginx/nginx.conf b/.docker/nginx/nginx.conf
index 88c532fe..a04fce74 100644
--- a/.docker/nginx/nginx.conf
+++ b/.docker/nginx/nginx.conf
@@ -1,5 +1,6 @@
user nginx;
worker_processes 1;
+pid /var/run/nginx.pid;
events {
worker_connections 1024;
diff --git a/ChangeLog b/ChangeLog
index 950f372f..fba5eedf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -11,6 +11,7 @@ New features:
Improvements:
+* Upgrade Docker image to Alpine Linux 3.4
* Move task import to a separate section
* Mark web notification as read when clicking on it
* Support strtotime strings for date search
diff --git a/Dockerfile b/Dockerfile
index fc96f9aa..6f523373 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,11 +1,14 @@
-FROM gliderlabs/alpine:latest
+FROM alpine:3.4
MAINTAINER Frederic Guillot <fred@kanboard.net>
-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 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/*
+
+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 \
@@ -17,8 +20,8 @@ RUN cd /var/www \
&& 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/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/kanboard/config.php /var/www/kanboard/