From 8da22d1d74083f3c946b05b6b43c73a912b55a9f Mon Sep 17 00:00:00 2001 From: Teddysun Date: Fri, 29 Nov 2019 21:59:52 +0900 Subject: [PATCH] Update Dockerfile --- docker/v2ray/Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docker/v2ray/Dockerfile b/docker/v2ray/Dockerfile index f1d919e..c745f7d 100644 --- a/docker/v2ray/Dockerfile +++ b/docker/v2ray/Dockerfile @@ -2,6 +2,8 @@ # Copyright (C) 2019 Teddysun # Reference URL: # https://github.com/v2ray/v2ray-core +# https://github.com/v2ray/geoip +# https://github.com/v2ray/domain-list-community FROM golang:alpine AS builder RUN set -ex \ @@ -19,8 +21,8 @@ RUN set -ex \ && cd geoip \ && go get -d \ && go build -o /go/bin/geoip \ - && GEOSITE_TAG="$(wget -qO- https://api.github.com/repos/v2ray/domain-list-community/releases/latest | grep 'tag_name' | sed -E 's/.*"([^"]+)".*/\1/')" \ - && wget -O /go/bin/geosite.dat "https://github.com/v2ray/domain-list-community/releases/download/${GEOSITE_TAG}/dlc.dat" \ + && GEOSITE_TAG=$(wget -qO- https://api.github.com/repos/v2ray/domain-list-community/releases/latest | grep 'tag_name' | sed -E 's/.*"([^"]+)".*/\1/') \ + && wget -O /go/bin/geosite.dat https://github.com/v2ray/domain-list-community/releases/download/${GEOSITE_TAG}/dlc.dat \ && cd /tmp \ && wget -O GeoLite2-Country-CSV.zip http://geolite.maxmind.com/download/geoip/database/GeoLite2-Country-CSV.zip \ && unzip GeoLite2-Country-CSV.zip \