Forked from hanspagel/Docker alpine php 7.1-fpm with geoip
Created
December 11, 2023 03:38
-
-
Save joemar-tagpuno/59db513754c31c969e3c0edf2832455f 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