This repository has been archived on 2020-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
2020-01-16 07:53:19 +00:00
|
|
|
FROM golang:1.13-alpine AS build
|
|
|
|
|
|
|
|
RUN apk update && apk add --no-cache gcc g++ musl-dev git
|
|
|
|
|
|
|
|
WORKDIR /hugo
|
|
|
|
|
2020-01-27 13:24:14 +00:00
|
|
|
RUN git clone --branch v0.63.2 https://github.com/gohugoio/hugo.git .
|
2020-01-16 07:53:19 +00:00
|
|
|
RUN go build -v --tags extended
|
|
|
|
|
|
|
|
FROM golang:1.13-alpine
|
|
|
|
|
|
|
|
COPY --from=build /hugo/hugo /usr/bin/hugo
|
|
|
|
|
|
|
|
RUN apk update && apk add --no-cache ca-certificates libc6-compat libstdc++ git
|
|
|
|
|
|
|
|
VOLUME /site
|
|
|
|
WORKDIR /site
|