forked from kanboard/kanboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
30 lines (23 loc) · 895 Bytes
/
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
FROM alpine:3.7
VOLUME /var/www/app/data
VOLUME /var/www/app/plugins
EXPOSE 80
ARG VERSION
RUN apk update && \
apk add unzip nginx bash ca-certificates s6 curl ssmtp mailx php7 php7-phar php7-curl \
php7-fpm php7-json php7-zlib php7-xml php7-dom php7-ctype php7-opcache php7-zip php7-iconv \
php7-pdo php7-pdo_mysql php7-pdo_sqlite php7-pdo_pgsql php7-mbstring php7-session \
php7-gd php7-mcrypt php7-openssl php7-sockets php7-posix php7-ldap php7-simplexml && \
rm -rf /var/cache/apk/* && \
rm -rf /var/www/localhost && \
rm -f /etc/php7/php-fpm.d/www.conf
RUN cd /tmp \
&& curl -sL -o kb.zip https://github.com/kanboard/kanboard/archive/$VERSION.zip \
&& unzip -qq kb.zip \
&& cd kanboard-* \
&& cp -R . /var/www/app \
&& cd /tmp \
&& rm -rf /tmp/kanboard-* /tmp/*.zip
ADD docker/ /
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
CMD []