diff --git a/oauth2-proxy/Dockerfile b/oauth2-proxy/Dockerfile index faa7ccd..01e2771 100644 --- a/oauth2-proxy/Dockerfile +++ b/oauth2-proxy/Dockerfile @@ -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 \