diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..887832c --- /dev/null +++ b/Dockerfile @@ -0,0 +1,10 @@ +FROM golang:1.9 AS builder +WORKDIR /go/src/github.com/bitly/oauth2_proxy +COPY . . +RUN go get -d -v; \ + CGO_ENABLED=0 GOOS=linux go build + +FROM scratch +COPY --from=builder /go/src/github.com/bitly/oauth2_proxy/oauth2_proxy /bin/oauth2_proxy + +ENTRYPOINT ["/bin/oauth2_proxy"]