Skip to content

Commit 67ca5f2

Browse files
kolyshkinjoaofnfernandes
authored andcommitted
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>
1 parent 886db16 commit 67ca5f2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Dockerfile.builder

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ RUN go get -d github.com/tdewolff/minify/cmd/minify \
88
FROM starefossen/github-pages:177
99

1010
# Get some utilities we need for post-build steps
11-
RUN apk update && apk add bash wget subversion gzip
11+
RUN apk add --no-cache bash wget subversion gzip
1212

1313
# Copy scripts used for static HTML post-processing.
1414
COPY scripts /scripts

Dockerfile.nginx.onbuild

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ ONBUILD COPY --from=builder /site /usr/share/nginx/html
1616
COPY nginx-overrides.conf /etc/nginx/conf.d/default.conf
1717

1818
# Start Nginx to serve the archive at / (which will redirect to the version-specific dir)
19-
CMD echo -e "Docker docs are viewable at:\nhttp://0.0.0.0:4000"; exec nginx -g 'daemon off;'
19+
CMD echo -e "Docker docs are viewable at:\nhttp://0.0.0.0:4000"; exec nginx -g 'daemon off;'

0 commit comments

Comments
 (0)