jlelse
/
docker-hugo
Archived
1
Fork 0
This commit is contained in:
Jan-Lukas Else 2020-01-16 08:53:19 +01:00
commit 4fa20e6628
1 changed files with 17 additions and 0 deletions

17
Dockerfile Normal file
View File

@ -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