mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
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
This commit is contained in:
parent
6b3f1a1002
commit
41974303f3
1 changed files with 2 additions and 1 deletions
|
@ -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}
|
||||
|
|
Loading…
Reference in a new issue