Skip to content

Instantly share code, notes, and snippets.

@alicek106
Created July 28, 2019 12:05
Show Gist options
  • Save alicek106/28eeddf45432b083feaf965a84bcf7ad to your computer and use it in GitHub Desktop.
Save alicek106/28eeddf45432b083feaf965a84bcf7ad to your computer and use it in GitHub Desktop.
Dockerfile for Dex App (k8s)
# build stage
FROM golang:1.12.7-alpine
RUN apk add build-base git
RUN go get github.com/dexidp/dex; exit 0
WORKDIR src/github.com/dexidp/dex
RUN make
# final stage
FROM alpine
COPY --from=0 /go/src/github.com/dexidp/dex/bin/example-app /
ENTRYPOINT ./example-app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment