Skip to content

Instantly share code, notes, and snippets.

@hanspagel
Created September 14, 2018 15:10
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save hanspagel/2154f829c58c8aedcd52065f24915f89 to your computer and use it in GitHub Desktop.
Save hanspagel/2154f829c58c8aedcd52065f24915f89 to your computer and use it in GitHub Desktop.
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