Skip to content

Commit

Permalink
chore(docker): add dockerfile
Browse files Browse the repository at this point in the history
add dockerfile

refs riobard#25

Signed-off-by: mritd <mritd1234@gmail.com>
  • Loading branch information
mritd committed Dec 17, 2018
1 parent a4bcfe5 commit f271e2a
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 f271e2a

Please sign in to comment.