mirror of
https://github.com/vimagick/dockerfiles
synced 2024-06-16 11:58:47 +00: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_VERSION=3.4.1
|
||||||
ARG FREEGEOIP_FILE=freegeoip-${FREEGEOIP_VERSION}-linux-amd64.tar.gz
|
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 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
|
WORKDIR /opt/freegeoip
|
||||||
|
|
||||||
RUN set -xe \
|
RUN set -xe \
|
||||||
&& apk add --no-cache curl tar \
|
&& apk add --no-cache curl tar wget \
|
||||||
&& curl -sSL ${FREEGEOIP_URL} | tar xz --strip 1 \
|
&& curl -sSL ${FREEGEOIP_URL} | tar xz --strip 1 \
|
||||||
&& apk del curl tar
|
&& mkdir -p data \
|
||||||
|
&& wget -P data ${MMDB_URL} \
|
||||||
COPY data/GeoLite2-City.mmdb.gz /opt/freegeoip/data/
|
&& apk del curl tar wget
|
||||||
|
|
||||||
EXPOSE 8080 8888
|
EXPOSE 8080 8888
|
||||||
|
|
||||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user