From 46b8e2eec18063ee97d76a27bb68d19d02549d48 Mon Sep 17 00:00:00 2001 From: Dreamacro <305009791@qq.com> Date: Sun, 17 Jun 2018 10:00:52 +0800 Subject: [PATCH] Update: Dockerfile --- Dockerfile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index a82a556f..ec3b6e43 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,7 @@ FROM golang:latest as builder RUN wget http://geolite.maxmind.com/download/geoip/database/GeoLite2-Country.tar.gz -O /tmp/GeoLite2-Country.tar.gz && \ - cd /tmp && \ - tar zxvf GeoLite2-Country.tar.gz && \ - cd GeoLite2-Country_* && \ - cp GeoLite2-Country.mmdb /Country.mmdb + tar zxvf /tmp/GeoLite2-Country.tar.gz -C /tmp && \ + cp /tmp/GeoLite2-Country_*/GeoLite2-Country.mmdb /Country.mmdb RUN curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh && \ mkdir -p /go/src/github.com/Dreamacro/clash WORKDIR /go/src/github.com/Dreamacro/clash