Skip to content

Commit

Permalink
Merge pull request shadowsocks#138 from mritd/master
Browse files Browse the repository at this point in the history
chore(docker): support go mod
  • Loading branch information
riobard authored Jun 12, 2019
2 parents 81a9cfb + e05f51f commit 74fc468
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 74fc468

Please sign in to comment.