git.iko.soy/typeable/oauth2-proxy
on v3.0.0 help sign in
16 lines 406 B history raw
1FROM golang:1.10 AS builder
2WORKDIR /go/src/github.com/pusher/oauth2_proxy
3COPY . .
5# Fetch dependencies
6RUN go get -u github.com/golang/dep/cmd/dep
7RUN dep ensure --vendor-only
9# Build image
10RUN ./configure && make clean oauth2_proxy
12# Copy binary to debian
13FROM debian:stretch
14COPY --from=builder /go/src/github.com/pusher/oauth2_proxy/oauth2_proxy /bin/oauth2_proxy
16ENTRYPOINT ["/bin/oauth2_proxy"]