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

47 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
MAINTAINER kev <noreply@datageek.info>
2015-07-17 04:51:33 +02:00
RUN 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
2015-08-08 06:22:32 +02:00
ENV PIWIK_VER 2.14.3
ENV PIWIK_MD5 1a613d36723ca5ccd52a9a9121d09a83
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
RUN 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 .