1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-25 00:08:49 +00:00
dockerfiles/freegeoip/Dockerfile

25 lines
657 B
Docker
Raw Normal View History

2018-11-28 06:05:02 +00:00
#
# Dockerfile for freegeoip
#
FROM alpine
MAINTAINER EasyPi Software Foundation
2020-01-09 09:22:20 +00:00
ENV FREEGEOIP_VERSION=3.4.1
ENV FREEGEOIP_FILE=freegeoip-${FREEGEOIP_VERSION}-linux-amd64.tar.gz
ENV FREEGEOIP_URL=https://github.com/fiorix/freegeoip/releases/download/v${FREEGEOIP_VERSION}/${FREEGEOIP_FILE}
2018-11-28 06:05:02 +00:00
WORKDIR /opt/freegeoip
RUN set -xe \
&& apk add --no-cache curl tar \
&& curl -sSL ${FREEGEOIP_URL} | tar xz --strip 1 \
&& apk del curl tar
2020-01-09 09:22:20 +00:00
COPY data/GeoLite2-City.mmdb.gz /opt/freegeoip/data/
2018-11-28 06:05:02 +00:00
EXPOSE 8080 8888
ENTRYPOINT ["./freegeoip"]
2020-01-09 09:22:20 +00:00
CMD ["-public", "public", "-http", ":8080", "-internal-server", ":8888", "-db", "data/GeoLite2-City.mmdb.gz"]