update oauth2 proxy;

Signed-off-by: Jess Frazelle <acidburn@jessfraz.com>
This commit is contained in:
Jess Frazelle
2019-03-08 11:29:49 -05:00
parent 01feb50dde
commit 86e66cdc21
3 changed files with 26 additions and 18 deletions

View File

@@ -8,15 +8,15 @@ RUN apk --no-cache add \
ENV PATH /go/bin:/usr/local/go/bin:$PATH
ENV GOPATH /go
ENV OAUTH2_PROXY_VERSION v2.2
ENV OAUTH2_PROXY_VERSION v3.1.0
RUN go get github.com/bitly/oauth2_proxy || true \
&& cd /go/src/github.com/bitly/oauth2_proxy \
&& git checkout "${OAUTH2_VERSION}" \
&& go get -d github.com/bitly/oauth2_proxy || true \
&& go get gopkg.in/fsnotify/fsnotify.v1 \
&& mv "${GOPATH}/src/gopkg.in/fsnotify/fsnotify.v1" "${GOPATH}/src/gopkg.in/fsnotify.v1" \
&& go build \
RUN go get github.com/golang/dep/cmd/dep
RUN go get github.com/pusher/oauth2_proxy || true \
&& cd /go/src/github.com/pusher/oauth2_proxy \
&& git checkout "${OAUTH2_PROXY_VERSION}" \
&& dep ensure --vendor-only \
&& go build . \
&& mv oauth2_proxy /usr/bin/