Skip to content
Permalink
Browse files

dockerfile: Switch base image for final build

Switching the base image for the final build to alpine as it still
provides a minimal interface, but has a mechanism for easily including
relevant CA certificates.  This is currently pinned to a tagged version,
though since none of the underlying mechanisms are used this should
balance both remaining stable, supported for a period of time, and
providing usable functionality.

Resolves #5970
Affects #5056
  • Loading branch information...
brianredbeard authored and anthonyfok committed May 18, 2019
1 parent 6b3f1a1 commit 41974303f3e5e6d7deb87a791aba512dbf1b9c59
Showing with 2 additions and 1 deletion.
  1. +2 −1 Dockerfile
@@ -22,7 +22,8 @@ RUN go install -ldflags '-w -extldflags "-static"' -tags ${BUILD_TAGS}

# ---

FROM scratch
FROM alpine:3.9
RUN apk add --no-cache ca-certificates
COPY --from=build /go/bin/hugo /hugo
ARG WORKDIR="/site"
WORKDIR ${WORKDIR}

0 comments on commit 4197430

Please sign in to comment.
You can’t perform that action at this time.