1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-14 11:23:34 +02:00
dockerfiles/piwik/Dockerfile

49 lines
1.6 KiB
Docker
Raw Normal View History

2015-07-17 04:17:49 +02:00
#
# Dockerfile for piwik
#
FROM php:5.6-apache
2016-05-01 03:06:20 +02:00
MAINTAINER kev <noreply@easypi.info>
2015-07-17 04:17:49 +02:00
2016-01-31 13:43:46 +02:00
RUN set -xe \
&& apt-get update \
2015-07-17 05:39:22 +02:00
&& apt-get install -y git \
2015-07-17 07:01:34 +02:00
libfreetype6 \
libfreetype6-dev \
2015-07-17 05:46:09 +02:00
libjpeg62-turbo \
2015-07-17 05:39:22 +02:00
libjpeg-dev \
2015-07-17 07:01:34 +02:00
libpng12-0 \
libpng12-dev \
2015-07-17 05:39:22 +02:00
libzip2 \
libzip-dev \
2015-07-17 07:01:34 +02:00
&& docker-php-ext-configure gd --with-freetype-dir=/usr \
--with-jpeg-dir=/usr \
--with-png-dir=/usr \
2015-07-17 05:39:22 +02:00
&& docker-php-ext-install gd \
mbstring \
mysqli \
zip \
2015-07-17 07:01:34 +02:00
&& apt-get purge --auto-remove -y libfreetype6-dev \
2015-07-17 05:46:09 +02:00
libjpeg-dev \
2015-07-17 07:01:34 +02:00
libpng12-dev \
2015-07-17 05:46:09 +02:00
libzip-dev \
2015-07-17 05:17:22 +02:00
&& rm -rf /var/lib/apt/lists/*
2015-07-17 04:17:49 +02:00
WORKDIR /var/www/html
2016-01-31 13:43:46 +02:00
ENV PIWIK_VER 2.15.0
ENV PIWIK_MD5 a57398f53384879aaf459748329ff614
2015-07-17 04:17:49 +02:00
ENV PIWIK_URL https://github.com/piwik/piwik/archive/$PIWIK_VER.tar.gz
ENV PIWIK_FILE piwik.tar.gz
2016-01-31 13:43:46 +02:00
RUN set -xe \
&& curl -sSL ${PIWIK_URL} -o ${PIWIK_FILE} \
&& echo "${PIWIK_MD5} ${PIWIK_FILE}" | md5sum -c \
2015-07-17 04:24:06 +02:00
&& tar xzf ${PIWIK_FILE} --strip 1 \
&& rm ${PIWIK_FILE} \
2015-07-17 04:36:55 +02:00
&& curl -sS https://getcomposer.org/installer | php \
2015-07-17 04:51:33 +02:00
&& php composer.phar install \
2015-07-17 06:37:59 +02:00
&& echo "always_populate_raw_post_data=-1" >> /usr/local/etc/php/php.ini \
2015-07-17 04:17:49 +02:00
&& chown -R www-data:www-data .