From 20a34a2802b5e824361a00a25c794166271ef712 Mon Sep 17 00:00:00 2001 From: Kir Kolyshkin Date: Mon, 26 Feb 2018 18:26:08 -0800 Subject: [PATCH] Dockerfile: fix apk command 1. It does not make sense to run apk many times. 2. Use --no-cache flag to avoid doing update, as per https://github.com/gliderlabs/docker-alpine/blob/master/docs/usage.md#disabling-cache Signed-off-by: Kir Kolyshkin --- Dockerfile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 27e3af8582..ad32a0f4b1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,9 +3,14 @@ FROM starefossen/github-pages # This is the source for docs/docs-base. Push to that location to ensure that # the production image gets your update :) -# Install nginx +# Install nginx as well as packages used by +# _scripts/fetch-upstream-resources.sh (master branch) -RUN apk update && apk add nginx && apk add git && apk add subversion && apk add wget +RUN apk --no-cache add \ + git \ + nginx \ + subversion \ + wget # Forward nginx request and error logs to docker log collector