From ff119d15562e008e0a1cc7aea3868dedf37df6ed Mon Sep 17 00:00:00 2001 From: Eric Chiang Date: Mon, 14 Nov 2016 17:25:19 -0800 Subject: [PATCH] Dockerfile: add OpenSSL to Docker container Add OpenSSL to the dex Docker container so wget can be used to query HTTPS endpoint. This is a requirement for health checking when dex is doing its own TLS termination. This increased the image size from 20.37 MB to 20.92 MB (+550 KB). Additionally add Ed and Rithu as maintainers. --- Dockerfile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9f1b277b..c5361667 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,18 @@ FROM alpine:3.4 +MAINTAINER Ed Rooth MAINTAINER Eric Chiang +MAINTAINER Rithu John -RUN apk add --update ca-certificates +# 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 COPY _output/bin/dex /usr/local/bin/dex -ENTRYPOINT ["/usr/local/bin/dex"] +ENTRYPOINT ["dex"] CMD ["version"]