From e05f51f0ef75869bab4ba09d1a8c07f34e1c3967 Mon Sep 17 00:00:00 2001 From: mritd Date: Wed, 12 Jun 2019 16:24:33 +0800 Subject: [PATCH] chore(docker): support go mod support go mod, remove ldflags Signed-off-by: mritd --- Dockerfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index e35a6440..65fa56dd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,11 @@ -FROM golang:1.12.4-alpine3.9 AS builder +FROM golang:1.12.5-alpine3.9 AS builder + +ENV GO111MODULE on +ENV GOPROXY https://goproxy.io RUN apk upgrade \ && apk add git \ - && go get -ldflags '-w -s' \ - github.com/shadowsocks/go-shadowsocks2 + && go get github.com/shadowsocks/go-shadowsocks2 FROM alpine:3.9 AS dist