Skip to content

Commit

Permalink
Merge pull request shadowsocks#122 from mritd/master
Browse files Browse the repository at this point in the history
Add Dockerfile to build and run
  • Loading branch information
riobard authored Dec 17, 2018
2 parents a4bcfe5 + f271e2a commit a31551f
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM golang:1.11.3-alpine3.8 AS builder

RUN apk upgrade \
&& apk add git \
&& go get -ldflags '-w -s' \
github.com/shadowsocks/go-shadowsocks2

FROM alpine:3.8

LABEL maintainer="mritd <mritd1234@gmail.com>"

RUN apk upgrade \
&& apk add bash tzdata \
&& rm -rf /var/cache/apk/*

COPY --from=builder /go/bin/go-shadowsocks2 /usr/bin/shadowsocks

ENTRYPOINT ["shadowsocks"]

0 comments on commit a31551f

Please sign in to comment.