github.com/pusher/oauth2_proxy@v3.2.0+incompatible/Dockerfile.arm64 (about)

     1  FROM golang:1.11-stretch AS builder
     2  
     3  # Download tools
     4  RUN wget -O $GOPATH/bin/dep https://github.com/golang/dep/releases/download/v0.5.0/dep-linux-amd64
     5  RUN chmod +x $GOPATH/bin/dep
     6  
     7  # Copy sources
     8  WORKDIR $GOPATH/src/github.com/pusher/oauth2_proxy
     9  COPY . .
    10  
    11  # Fetch dependencies
    12  RUN dep ensure --vendor-only
    13  
    14  # Build binary
    15  RUN ./configure && GOARCH=arm64 make build
    16  
    17  # Copy binary to alpine
    18  FROM arm64v8/alpine:3.8
    19  COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
    20  COPY --from=builder /go/src/github.com/pusher/oauth2_proxy/oauth2_proxy /bin/oauth2_proxy
    21  
    22  RUN addgroup -S -g 2000 oauth2proxy && adduser -S -u 2000 oauth2proxy -G oauth2proxy
    23  USER oauth2proxy
    24  
    25  ENTRYPOINT ["/bin/oauth2_proxy"]