From f48aa3b4d924a3504a6be35465edfb4dd737cd37 Mon Sep 17 00:00:00 2001 From: Joel Speed Date: Wed, 28 Feb 2018 14:40:22 +0000 Subject: [PATCH] Add Dockerfile --- Dockerfile | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Dockerfile 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"]