hugo-alpine-ext/Dockerfile

16 lines
302 B
Docker
Raw Normal View History

FROM golang:1.20-alpine as builder
ARG HUGO_VERSION
ENV CGO_ENABLED=1
RUN apk add --no-cache git build-base && \
go install -tags extended github.com/gohugoio/hugo@v$HUGO_VERSION
FROM golang:1.20-alpine
RUN apk add libstdc++
COPY --from=builder /go/bin/hugo /go/bin/hugo
CMD ["/go/bin/hugo"]