Created
September 14, 2018 15:10
-
-
Save hanspagel/2154f829c58c8aedcd52065f24915f89 to your computer and use it in GitHub Desktop.
This file contains 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 php:7.1-fpm-alpine | |
RUN apk --no-cache add \ | |
autoconf \ | |
build-base \ | |
geoip \ | |
geoip-dev | |
RUN mkdir -p /usr/share/GeoIP && cd /usr/share/GeoIP/ && \ | |
wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz && \ | |
wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz && \ | |
gzip -d * | |
RUN pecl install geoip-1.1.1 | |
RUN docker-php-ext-enable geoip |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment