1
0
mirror of https://github.com/oauth2-proxy/oauth2-proxy.git synced 2025-01-10 04:18:14 +02:00
oauth2-proxy/Dockerfile

17 lines
406 B
Docker
Raw Normal View History

2018-12-20 13:06:26 +02:00
FROM golang:1.10 AS builder
WORKDIR /go/src/github.com/pusher/oauth2_proxy
COPY . .
# Fetch dependencies
RUN go get -u github.com/golang/dep/cmd/dep
RUN dep ensure --vendor-only
# Build image
2019-01-04 12:58:30 +02:00
RUN ./configure && make clean oauth2_proxy
2018-12-20 13:06:26 +02:00
2019-01-04 12:58:30 +02:00
# Copy binary to debian
FROM debian:stretch
2018-12-20 13:06:26 +02:00
COPY --from=builder /go/src/github.com/pusher/oauth2_proxy/oauth2_proxy /bin/oauth2_proxy
ENTRYPOINT ["/bin/oauth2_proxy"]