FROM docker.io/golang:latest as builder RUN CGO_ENABLED=0 go install github.com/dexidp/dex/examples/example-app@latest FROM docker.io/alpine:latest COPY --from=builder /go/bin/example-app /usr/local/bin/example-app CMD [ "example-app" ]