blob: a2a6df79fff6fbff7875477e93899b685e6736d4 [file] [log] [blame]
Matthias Andreas Benkardc7d492a2017-07-29 10:02:55 +02001
2FROM alpine:3.5
3MAINTAINER Silvio Fricke <silvio.fricke@gmail.com>
4
5ENTRYPOINT ["/start.sh"]
6VOLUME /data
7
8ADD addons/nginx-server.conf /etc/nginx/conf.d/default.conf
9ADD addons/start.sh /start.sh
10
11# useable for any git references
12ENV HUBZILLAVERSION 2.4
13
14ENV HUBZILLAINTERVAL 10
15env SERVERNAME 127.0.0.1
16
17
18RUN set -ex \
19 && apk update \
20 && apk upgrade \
21 && apk add \
22 bash \
23 curl \
24 dcron \
25 gd \
26 nginx \
27 openssl \
28 php5 \
29 php5-curl \
30 php5-fpm \
31 php5-gd \
32 php5-json \
33 php5-pdo_mysql \
34 php5-pdo_pgsql \
35 php5-openssl \
36 php5-xml \
37 php5-zip \
38 && mkdir -p /run/nginx /hubzilla \
39 && curl https://codeload.github.com/redmatrix/hubzilla/tar.gz/${HUBZILLAVERSION} | tar -xz --strip-components=1 -C /hubzilla -f - \
40 && chown nginx:nginx -R /hubzilla \
41 && chmod 0777 /hubzilla \
42 && sed -i 's/;cgi.fix_pathinfo=1/cgi.fix_pathinfo=0/' /etc/php5/php.ini \
43 && chmod u+x /start.sh \
44 && echo "*/###HUBZILLAINTERVAL### * * * * cd /hubzilla; /usr/bin/php Zotlabs/Daemon/Master.php Cron" > /hubzilla-cron.txt