forked from silvio/hubzilla-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
44 lines (37 loc) · 1.17 KB
/
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
FROM alpine:3.5
MAINTAINER Yoann Aubry <nimblydev@gmail.com>
ENTRYPOINT ["/start.sh"]
VOLUME /data
ADD addons/nginx-server.conf /etc/nginx/conf.d/default.conf
ADD addons/start.sh /start.sh
# useable for any git references
ENV HUBZILLAVERSION 3.8.2
ENV HUBZILLAINTERVAL 10
env SERVERNAME 127.0.0.1
RUN set -ex \
&& apk update \
&& apk upgrade \
&& apk add \
bash \
curl \
dcron \
gd \
nginx \
openssl \
php5 \
php5-curl \
php5-fpm \
php5-gd \
php5-json \
php5-pdo_mysql \
php5-pdo_pgsql \
php5-openssl \
php5-xml \
php5-zip \
&& mkdir -p /run/nginx /hubzilla \
&& curl https://framagit.org/hubzilla/core/-/archive/${HUBZILLAVERSION}/core-${HUBZILLAVERSION}.tar.gz | 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 \
&& chmod u+x /start.sh \
&& echo "*/###HUBZILLAINTERVAL### * * * * cd /hubzilla; /usr/bin/php Zotlabs/Daemon/Master.php Cron" > /hubzilla-cron.txt