mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-01-02 03:37:40 +02:00
update freegeoip
This commit is contained in:
parent
f84f7c47bf
commit
51d7179c20
@ -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.
Loading…
Reference in New Issue
Block a user