Last active
April 21, 2016 19:36
-
-
Save RafPe/d82244903738afbf74b4125bb5dc9c38 to your computer and use it in GitHub Desktop.
This is DockerFile for piwik with Apache
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM tutum/apache-php | |
| RUN rm -rf /app/* | |
| RUN curl -L -O https://builds.piwik.org/latest.tar.gz && \ | |
| tar --strip 1 -xzf latest.tar.gz && \ | |
| rm latest.tar.gz | |
| RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y php5-geoip php5-dev libgeoip-dev && apt-get clean | |
| RUN rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | |
| RUN echo "extension=geoip.so" >> /etc/php5/apache2/php.ini | |
| RUN echo "geoip.custom_directory=/app/misc" >> /etc/php5/apache2/php.ini | |
| WORKDIR /app/misc | |
| RUN curl -L -O http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz && gunzip GeoIP.dat.gz | |
| RUN curl -L -O http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz && gunzip GeoLiteCity.dat.gz && mv GeoLiteCity.dat GeoIPCity.dat | |
| RUN chmod a+w /app/config | |
| EXPOSE 80 | |
| VOLUME /app/config | |
| CMD ["/run.sh"] | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment