Add Dockerfile

This commit is contained in:
Joel Speed 2018-02-28 14:40:22 +00:00
parent bcd5ac513c
commit 2bdc656590
No known key found for this signature in database
GPG Key ID: 83695B8B3A376982

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