2019-08-22 06:40:31 +00:00
|
|
|
FROM golang:1.12.9-alpine
|
2016-08-09 22:26:32 +00:00
|
|
|
|
2017-09-18 06:56:39 +00:00
|
|
|
RUN apk add --no-cache --update alpine-sdk
|
|
|
|
|
2018-09-03 06:44:44 +00:00
|
|
|
COPY . /go/src/github.com/dexidp/dex
|
|
|
|
RUN cd /go/src/github.com/dexidp/dex && make release-binary
|
2017-09-18 06:56:39 +00:00
|
|
|
|
2019-04-16 18:47:06 +00:00
|
|
|
FROM alpine:3.9
|
2016-11-15 01:25:19 +00:00
|
|
|
# Dex connectors, such as GitHub and Google logins require root certificates.
|
|
|
|
# Proper installations should manage those certificates, but it's a bad user
|
|
|
|
# experience when this doesn't work out of the box.
|
|
|
|
#
|
|
|
|
# OpenSSL is required so wget can query HTTPS endpoints for health checking.
|
|
|
|
RUN apk add --update ca-certificates openssl
|
2016-08-09 22:26:32 +00:00
|
|
|
|
2019-04-16 18:47:06 +00:00
|
|
|
USER 1001:1001
|
2017-09-18 06:56:39 +00:00
|
|
|
COPY --from=0 /go/bin/dex /usr/local/bin/dex
|
2016-08-09 22:26:32 +00:00
|
|
|
|
2016-11-30 22:26:54 +00:00
|
|
|
# Import frontend assets and set the correct CWD directory so the assets
|
|
|
|
# are in the default path.
|
|
|
|
COPY web /web
|
|
|
|
WORKDIR /
|
|
|
|
|
2016-11-15 01:25:19 +00:00
|
|
|
ENTRYPOINT ["dex"]
|
2016-08-09 22:26:32 +00:00
|
|
|
|
|
|
|
CMD ["version"]
|