Matthias Andreas Benkard | c7d492a | 2017-07-29 10:02:55 +0200 | [diff] [blame^] | 1 | |
| 2 | FROM alpine:3.5 |
| 3 | MAINTAINER Silvio Fricke <silvio.fricke@gmail.com> |
| 4 | |
| 5 | ENTRYPOINT ["/start.sh"] |
| 6 | VOLUME /data |
| 7 | |
| 8 | ADD addons/nginx-server.conf /etc/nginx/conf.d/default.conf |
| 9 | ADD addons/start.sh /start.sh |
| 10 | |
| 11 | # useable for any git references |
| 12 | ENV HUBZILLAVERSION 2.4 |
| 13 | |
| 14 | ENV HUBZILLAINTERVAL 10 |
| 15 | env SERVERNAME 127.0.0.1 |
| 16 | |
| 17 | |
| 18 | RUN 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 |