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 <kolyshkin@gmail.com>
This commit is contained in:
Kir Kolyshkin 2018-02-26 18:26:08 -08:00 committed by Joao Fernandes
parent ee299f4d2e
commit 20a34a2802
1 changed files with 7 additions and 2 deletions

View File

@ -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