From 6e70402f4a1d5dcc37a5f3b2ee7c415971551d57 Mon Sep 17 00:00:00 2001 From: Tom Partington Date: Wed, 6 Dec 2017 10:56:27 +1100 Subject: [PATCH] Switch to the HTTPS endpoint for the alpine APK repositories Signed-off-by: Tom Partington --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index 8a0f810..70ef4d9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,6 +4,9 @@ LABEL org.label-schema.name="docker-bench-security" \ org.label-schema.url="https://dockerbench.com" \ org.label-schema.vcs-url="https://github.com/docker/docker-bench-security.git" +# Switch to the HTTPS endpoint for the apk repositories as per https://github.com/gliderlabs/docker-alpine/issues/184 +RUN sed -i 's/http\:\/\/dl-cdn.alpinelinux.org/https\:\/\/alpine.global.ssl.fastly.net/g' /etc/apk/repositories + RUN \ apk upgrade --no-cache && \ apk add --no-cache \