1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-01-22 05:09:09 +02:00
dockerfiles/piwik/Dockerfile

47 lines
1.6 KiB
Docker
Raw Normal View History

2015-07-17 10:17:49 +08:00
#
# Dockerfile for piwik
#
FROM php:5.6-apache
MAINTAINER kev <noreply@datageek.info>
2015-07-17 10:51:33 +08:00
RUN apt-get update \
2015-07-17 11:39:22 +08:00
&& apt-get install -y git \
2015-07-17 13:01:34 +08:00
libfreetype6 \
libfreetype6-dev \
2015-07-17 11:46:09 +08:00
libjpeg62-turbo \
2015-07-17 11:39:22 +08:00
libjpeg-dev \
2015-07-17 13:01:34 +08:00
libpng12-0 \
libpng12-dev \
2015-07-17 11:39:22 +08:00
libzip2 \
libzip-dev \
2015-07-17 13:01:34 +08:00
&& docker-php-ext-configure gd --with-freetype-dir=/usr \
--with-jpeg-dir=/usr \
--with-png-dir=/usr \
2015-07-17 11:39:22 +08:00
&& docker-php-ext-install gd \
mbstring \
mysqli \
zip \
2015-07-17 13:01:34 +08:00
&& apt-get purge --auto-remove -y libfreetype6-dev \
2015-07-17 11:46:09 +08:00
libjpeg-dev \
2015-07-17 13:01:34 +08:00
libpng12-dev \
2015-07-17 11:46:09 +08:00
libzip-dev \
2015-07-17 11:17:22 +08:00
&& rm -rf /var/lib/apt/lists/*
2015-07-17 10:17:49 +08:00
WORKDIR /var/www/html
2015-08-08 12:22:32 +08:00
ENV PIWIK_VER 2.14.3
ENV PIWIK_MD5 1a613d36723ca5ccd52a9a9121d09a83
2015-07-17 10:17:49 +08: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 10:24:06 +08:00
&& tar xzf ${PIWIK_FILE} --strip 1 \
&& rm ${PIWIK_FILE} \
2015-07-17 10:36:55 +08:00
&& curl -sS https://getcomposer.org/installer | php \
2015-07-17 10:51:33 +08:00
&& php composer.phar install \
2015-07-17 12:37:59 +08:00
&& echo "always_populate_raw_post_data=-1" >> /usr/local/etc/php/php.ini \
2015-07-17 10:17:49 +08:00
&& chown -R www-data:www-data .