From 7df881dcbe5f220d9080dc98ff9cfd258932edf6 Mon Sep 17 00:00:00 2001 From: andyzhangx Date: Thu, 10 Jan 2019 03:47:21 +0000 Subject: [PATCH] change default Dockerfile to install ssl utils Signed-off-by: andyzhangx --- Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 612e62ce..ec09350e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,7 +14,11 @@ WORKDIR $DISTRIBUTION_DIR COPY . $DISTRIBUTION_DIR RUN CGO_ENABLED=0 make PREFIX=/go clean binaries && file ./bin/registry | grep "statically linked" -FROM alpine +FROM alpine:3.8 + +RUN set -ex \ + && apk add --no-cache ca-certificates apache2-utils + COPY cmd/registry/config-dev.yml /etc/docker/registry/config.yml COPY --from=build /go/src/github.com/docker/distribution/bin/registry /bin/registry VOLUME ["/var/lib/registry"]