Skip to content

Commit

Permalink
Dockerfile.build: fix apk invocation
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
kolyshkin authored and joaofnfernandes committed Mar 13, 2018
1 parent 886db16 commit 67ca5f2
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile.builder
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion Dockerfile.nginx.onbuild
Original file line number Diff line number Diff line change
@@ -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;'

0 comments on commit 67ca5f2

Please sign in to comment.