-
Notifications
You must be signed in to change notification settings - Fork 26
/
Dockerfile
41 lines (32 loc) · 1.05 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
FROM marvambass/nginx-ssl-php
MAINTAINER MarvAmBass
ENV DH_SIZE="2048"
ENV PIWIK_VERSION="3.5.0"
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get -q -y update && \
apt-get -q -y install \
mysql-client \
php5-mysql \
php5-gd \
php5-geoip \
php-apc \
curl \
zip; \
\
echo clean http directory; \
rm -rf /usr/share/nginx/html/*
# install nginx piwik config
ADD nginx-piwik.conf /etc/nginx/conf.d/nginx-piwik.conf
# download piwik
RUN curl -O "http://builds.piwik.org/piwik-${PIWIK_VERSION}.zip"
# unarchive piwik
RUN unzip piwik-${PIWIK_VERSION}.zip
# add piwik config
ADD config.ini.php /piwik/config/config.ini.php
# add startup.sh
ADD startup-piwik.sh /opt/startup-piwik.sh
RUN chmod a+x /opt/startup-piwik.sh
# add '/opt/startup-piwik.sh' to entrypoint.sh
RUN sed -i 's/# exec CMD/# exec CMD\n\/opt\/startup-piwik.sh/g' /opt/entrypoint.sh
# add missing always_populate_raw_post_data = -1 to php.ini (bug #8, piwik bug #6468)
RUN sed -i 's/;always_populate_raw_post_data/always_populate_raw_post_data/g' /etc/php5/fpm/php.ini