fix oauth2_proxy

Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
This commit is contained in:
Jess Frazelle 2018-03-23 12:10:57 -04:00
parent a1ce1ea497
commit 8e1c02746f
No known key found for this signature in database
GPG Key ID: 18F3685C0022BFF3

View File

@ -19,10 +19,12 @@ RUN buildDeps=' \
' \
set -x \
&& apk --no-cache add --repository https://dl-3.alpinelinux.org/alpine/edge/community $buildDeps \
&& go get github.com/bitly/oauth2_proxy \
&& 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 \
&& 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 \
&& mv oauth2_proxy /usr/bin/ \
&& apk del $buildDeps \