mirror of
https://github.com/docker/docs.git
synced 2026-03-27 14:28:47 +07:00
Dockerfile.build: fix apk invocation
Use --no-cache flag to - avoid doing cache update; - leaving metadata in the resulting image). 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:
committed by
Joao Fernandes
parent
886db1614b
commit
67ca5f2c80
@@ -8,7 +8,7 @@ RUN go get -d github.com/tdewolff/minify/cmd/minify \
|
||||
FROM starefossen/github-pages:177
|
||||
|
||||
# Get some utilities we need for post-build steps
|
||||
RUN apk update && apk add bash wget subversion gzip
|
||||
RUN apk add --no-cache bash wget subversion gzip
|
||||
|
||||
# Copy scripts used for static HTML post-processing.
|
||||
COPY scripts /scripts
|
||||
|
||||
@@ -16,4 +16,4 @@ ONBUILD COPY --from=builder /site /usr/share/nginx/html
|
||||
COPY nginx-overrides.conf /etc/nginx/conf.d/default.conf
|
||||
|
||||
# Start Nginx to serve the archive at / (which will redirect to the version-specific dir)
|
||||
CMD echo -e "Docker docs are viewable at:\nhttp://0.0.0.0:4000"; exec nginx -g 'daemon off;'
|
||||
CMD echo -e "Docker docs are viewable at:\nhttp://0.0.0.0:4000"; exec nginx -g 'daemon off;'
|
||||
|
||||
Reference in New Issue
Block a user