From 4fa20e6628d1e3204682512c7dd4f675f40a7ae2 Mon Sep 17 00:00:00 2001 From: Jan-Lukas Else Date: Thu, 16 Jan 2020 08:53:19 +0100 Subject: [PATCH] Init --- Dockerfile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Dockerfile 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