From: Brian 'Redbeard' Harrington Date: Sat, 18 May 2019 05:39:14 +0000 (-0700) Subject: dockerfile: Switch base image for final build X-Git-Tag: v0.56.0~57 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=41974303f3e5e6d7deb87a791aba512dbf1b9c59;p=brevno-suite%2Fhugo 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 --- diff --git a/Dockerfile b/Dockerfile index 01132e33..4728a0f2 100755 --- a/Dockerfile +++ b/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}