update freegeoip

This commit is contained in:
kev 2023-04-25 18:39:49 +08:00
parent f84f7c47bf
commit 51d7179c20
2 changed files with 5 additions and 4 deletions

View File

@ -8,15 +8,16 @@ MAINTAINER EasyPi Software Foundation
ARG FREEGEOIP_VERSION=3.4.1
ARG FREEGEOIP_FILE=freegeoip-${FREEGEOIP_VERSION}-linux-amd64.tar.gz
ARG FREEGEOIP_URL=https://github.com/fiorix/freegeoip/releases/download/v${FREEGEOIP_VERSION}/${FREEGEOIP_FILE}
ARG MMDB_URL=https://cdn.jsdelivr.net/npm/geolite2-city@1.0.0/GeoLite2-City.mmdb.gz
WORKDIR /opt/freegeoip
RUN set -xe \
&& apk add --no-cache curl tar \
&& apk add --no-cache curl tar wget \
&& curl -sSL ${FREEGEOIP_URL} | tar xz --strip 1 \
&& apk del curl tar
COPY data/GeoLite2-City.mmdb.gz /opt/freegeoip/data/
&& mkdir -p data \
&& wget -P data ${MMDB_URL} \
&& apk del curl tar wget
EXPOSE 8080 8888

Binary file not shown.