update latest versions

Signed-off-by: Jess Frazelle <acidburn@google.com>
This commit is contained in:
Jess Frazelle
2017-03-22 12:29:18 -07:00
parent e949f2da54
commit 12c06870f3
7 changed files with 43 additions and 8 deletions

32
oauth2-proxy/Dockerfile Normal file
View File

@@ -0,0 +1,32 @@
FROM alpine:latest
LABEL maintainer "Jessie Frazelle <jess@linux.com>"
ENV PATH /go/bin:/usr/local/go/bin:$PATH
ENV GOPATH /go
RUN apk --no-cache add \
ca-certificates
ENV OAUTH2_VERSION v2.1
RUN buildDeps=' \
go \
git \
gcc \
g++ \
libc-dev \
libgcc \
' \
set -x \
&& apk --no-cache add --repository https://dl-3.alpinelinux.org/alpine/edge/community $buildDeps \
&& go get github.com/bitly/oauth2_proxy \
&& cd /go/src/github.com/bitly/oauth2_proxy \
&& git checkout "${OAUTH2_VERSION}" \
&& go build \
&& mv oauth2_proxy /usr/bin/ \
&& apk del $buildDeps \
&& rm -rf /go \
&& echo "Build complete."
ENTRYPOINT [ "oauth2_proxy" ]