Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian 'Redbeard' Harrington <redbeard@dead-city.org>2019-05-18 08:39:14 +0300
committerAnthony Fok <foka@debian.org>2019-05-23 21:49:13 +0300
commit41974303f3e5e6d7deb87a791aba512dbf1b9c59 (patch)
treefa6bb98f711a3e1dda9c62ccd7097b54aef6c3d0 /Dockerfile
parent6b3f1a10028c81b776a5797bbd02c86957f8f042 (diff)
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
Diffstat (limited to 'Dockerfile')
-rwxr-xr-xDockerfile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile
index 01132e33e..4728a0f2e 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}