forked from a5huynh/oauth2_proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
19 lines (15 loc) · 765 Bytes
/
Dockerfile
File metadata and controls
19 lines (15 loc) · 765 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM alpine:3.8
LABEL maintainer="Ryan Nowacoski <ryannowacoski@gmail.com>"
LABEL last_updated="2018-11-28"
# Install CA certificates
RUN apk add --no-cache --virtual=build-dependencies ca-certificates
ENV OAUTH2_PROXY_VERSION 2.2
# Checkout bitly's latest google-auth-proxy code from Github
RUN wget https://github.com/bitly/oauth2_proxy/releases/download/v2.2/oauth2_proxy-2.2.0.linux-amd64.go1.8.1.tar.gz -O /tmp/oauth2_proxy.tar.gz \
&& tar -xf /tmp/oauth2_proxy.tar.gz -C ./bin --strip-components=1 \
&& rm /tmp/*.tar.gz
# Expose the ports we need and setup the ENTRYPOINT w/ the default argument
# to be pass in.
EXPOSE 8080 4180
ENTRYPOINT [ "./bin/oauth2_proxy" ]
CMD [ "--upstream=http://0.0.0.0:8080/", "--http-address=0.0.0.0:4180" ]