Files
docker-docs/Dockerfile.builder
Kir Kolyshkin 67ca5f2c80 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>
2018-03-13 10:39:03 -07:00

19 lines
676 B
Ruby

# Build minifier utility
FROM golang:1.9-alpine AS minifier
RUN apk add --no-cache git
RUN go get -d github.com/tdewolff/minify/cmd/minify \
&& go build -v -o /minify github.com/tdewolff/minify/cmd/minify
# Set the version of Github Pages to use for each docs archive
FROM starefossen/github-pages:177
# Get some utilities we need for post-build steps
RUN apk add --no-cache bash wget subversion gzip
# Copy scripts used for static HTML post-processing.
COPY scripts /scripts
COPY --from=minifier /minify /scripts/minify
# Print out a message if someone tries to run this image on its own
CMD echo 'This image is only meant to be used as a base image for building docs.'