commit 4fa20e6628d1e3204682512c7dd4f675f40a7ae2 Author: Jan-Lukas Else Date: Thu Jan 16 08:53:19 2020 +0100 Init diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..ea11ff4 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,17 @@ +FROM golang:1.13-alpine AS build + +RUN apk update && apk add --no-cache gcc g++ musl-dev git + +WORKDIR /hugo + +RUN git clone --branch v0.62.2 https://github.com/gohugoio/hugo.git . +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 \ No newline at end of file