Update: Dockerfile
This commit is contained in:
parent
cd9f496fc9
commit
46b8e2eec1
1 changed files with 2 additions and 4 deletions
|
@ -1,9 +1,7 @@
|
||||||
FROM golang:latest as builder
|
FROM golang:latest as builder
|
||||||
RUN wget http://geolite.maxmind.com/download/geoip/database/GeoLite2-Country.tar.gz -O /tmp/GeoLite2-Country.tar.gz && \
|
RUN wget http://geolite.maxmind.com/download/geoip/database/GeoLite2-Country.tar.gz -O /tmp/GeoLite2-Country.tar.gz && \
|
||||||
cd /tmp && \
|
tar zxvf /tmp/GeoLite2-Country.tar.gz -C /tmp && \
|
||||||
tar zxvf GeoLite2-Country.tar.gz && \
|
cp /tmp/GeoLite2-Country_*/GeoLite2-Country.mmdb /Country.mmdb
|
||||||
cd GeoLite2-Country_* && \
|
|
||||||
cp GeoLite2-Country.mmdb /Country.mmdb
|
|
||||||
RUN curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh && \
|
RUN curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh && \
|
||||||
mkdir -p /go/src/github.com/Dreamacro/clash
|
mkdir -p /go/src/github.com/Dreamacro/clash
|
||||||
WORKDIR /go/src/github.com/Dreamacro/clash
|
WORKDIR /go/src/github.com/Dreamacro/clash
|
||||||
|
|
Loading…
Reference in a new issue