add Dockerfile

This commit is contained in:
zhengrui 2018-02-28 13:16:35 +08:00
parent fa78a084e7
commit 6afb0a8f59

13
Dockerfile Normal file
View File

@ -0,0 +1,13 @@
FROM golang:alpine as builder
ADD . /go/src/github.com/ginuerzh/gost/
RUN go install github.com/ginuerzh/gost/cmd/gost
FROM alpine:latest
WORKDIR /bin/
COPY --from=builder /go/bin/gost .
ENTRYPOINT ["/bin/gost"]