mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-01-22 05:09:09 +02:00
25 lines
597 B
Docker
25 lines
597 B
Docker
#
|
|
# Dockerfile for piwik
|
|
#
|
|
|
|
FROM php:5.6-apache
|
|
MAINTAINER kev <noreply@datageek.info>
|
|
|
|
RUN a2enmod rewrite
|
|
RUN docker-php-ext-install mysqli
|
|
|
|
WORKDIR /var/www/html
|
|
|
|
ENV PIWIK_VER 2.14.1
|
|
ENV PIWIK_MD5 f299515138d99c46eda737761c73c2e6
|
|
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 \
|
|
&& tar xzf ${PIWIK_FILE} --strip 1 \
|
|
&& rm ${PIWIK_FILE} \
|
|
&& curl -sS https://getcomposer.org/installer | php \
|
|
&& chown -R www-data:www-data .
|
|
|