Add Dockerfile

This commit is contained in:
Joel Speed 2018-02-28 14:40:22 +00:00
parent 5ab17d9a40
commit f48aa3b4d9
No known key found for this signature in database
GPG Key ID: 83695B8B3A376982
1 changed files with 10 additions and 0 deletions

10
Dockerfile Normal file
View File

@ -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"]