mirror of https://github.com/docker/docs.git
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:
parent
ee299f4d2e
commit
20a34a2802
|
@ -3,9 +3,14 @@ FROM starefossen/github-pages
|
||||||
# This is the source for docs/docs-base. Push to that location to ensure that
|
# This is the source for docs/docs-base. Push to that location to ensure that
|
||||||
# the production image gets your update :)
|
# 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
|
# Forward nginx request and error logs to docker log collector
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue