Skip to content

Commit

Permalink
chore(docker): support go mod
Browse files Browse the repository at this point in the history
support go mod, remove ldflags

Signed-off-by: mritd <mritd@linux.com>
  • Loading branch information
mritd committed Jun 12, 2019
1 parent 81a9cfb commit e05f51f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit e05f51f

Please sign in to comment.