-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
51 lines (44 loc) · 1.54 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
45
46
47
48
49
50
51
FROM alpine:3.8
MAINTAINER Johannes Schramm <[email protected]>
ENV VERSION 1.3.6
ENV CHECKSUM f1b86e97cc8fd69bb1957d4115762af6ea2d6957ea17b33dd3ec2995662670d9
ENV PKG roundcubemail-${VERSION}-complete.tar.gz
ENV URL https://github.com/roundcube/roundcubemail/releases/download/${VERSION}/${PKG}
RUN apk --no-cache add \
nginx \
openssl \
php5-dom \
php5-fpm \
php5-iconv \
php5-imap \
php5-json \
php5-openssl \
php5-pdo_sqlite \
php5-pear \
php5-sockets \
php5-zip \
s6 \
&& sed -ie 's^;daemonize = yes^daemonize = no^' /etc/php5/php-fpm.conf \
&& sed -ie 's^;cgi.fix_pathinfo=1^cgi.fix_pathinfo=0^' /etc/php5/php.ini \
&& mkdir -p /etc/s6/.s6-svscan \
&& ln -s /bin/true /etc/s6/.s6-svscan/finish \
&& mkdir -p /etc/s6/nginx \
&& ln -s /bin/true /etc/s6/nginx/finish \
&& ln -s /usr/sbin/nginx /etc/s6/nginx/run \
&& mkdir -p /etc/s6/php-fpm \
&& ln -s /bin/true /etc/s6/php-fpm/finish \
&& ln -s /usr/bin/php-fpm5 /etc/s6/php-fpm/run \
&& wget ${URL} \
&& echo ${CHECKSUM} "" ${PKG} | sha256sum -c - \
&& tar -xvf ${PKG} -C /var/www \
&& rm ${PKG} \
&& mv /var/www/roundcubemail-* /var/www/roundcube \
&& mv /var/www/roundcube/config /etc/roundcube \
&& sed -ie 's^\$config\['\''db_dsnw'\''\] = .*^\$config\['\''db_dsnw'\''\] = '\
\''sqlite:////var/www/roundcube/config/db.sqlite\?mode=0646'\'';^' /etc/roundcube/defaults.inc.php \
&& apk --force --purge --rdepends del \
openssl
COPY root /
ENTRYPOINT ["/entrypoint.sh"]
EXPOSE 80
VOLUME /var/www/roundcube/config