| MAINTAINER Silvio Fricke <silvio.fricke@gmail.com> |
| ADD addons/nginx-server.conf /etc/nginx/conf.d/default.conf |
| ADD addons/start.sh /start.sh |
| # useable for any git references |
| && mkdir -p /run/nginx /hubzilla \ |
| && curl https://codeload.github.com/redmatrix/hubzilla/tar.gz/${HUBZILLAVERSION} | tar -xz --strip-components=1 -C /hubzilla -f - \ |
| && chown nginx:nginx -R /hubzilla \ |
| && chmod 0777 /hubzilla \ |
| && sed -i 's/;cgi.fix_pathinfo=1/cgi.fix_pathinfo=0/' /etc/php5/php.ini \ |
| && echo "*/###HUBZILLAINTERVAL### * * * * cd /hubzilla; /usr/bin/php Zotlabs/Daemon/Master.php Cron" > /hubzilla-cron.txt |