1FROM golang:1.13-buster AS builder
4RUN curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.17.1
7WORKDIR $GOPATH/src/github.com/pusher/oauth2_proxy
11RUN GO111MODULE=on go mod download
16# Build binary and make sure there is at least an empty key file.
17# This is useful for GCP App Engine custom runtime builds, because
18# you cannot use multiline variables in their app.yaml, so you have to
19# build the key into the container and then tell it where it is
20# by setting OAUTH2_PROXY_JWT_KEY_FILE=/etc/ssl/private/jwt_signing_key.pem
22RUN ./configure && GOARCH=arm GOARM=6 make build && touch jwt_signing_key.pem
24# Copy binary to alpine
25FROM arm32v6/alpine:3.10
26COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
27COPY --from=builder /go/src/github.com/pusher/oauth2_proxy/oauth2_proxy /bin/oauth2_proxy
28COPY --from=builder /go/src/github.com/pusher/oauth2_proxy/jwt_signing_key.pem /etc/ssl/private/jwt_signing_key.pem
32ENTRYPOINT ["/bin/oauth2_proxy"]
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list