jlelse
/
docker-hugo
Archived
1
Fork 0
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.
docker-hugo/Dockerfile

18 lines
388 B
Docker
Raw Normal View History

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-02-20 17:41:56 +00:00
RUN git clone --branch v0.65.1 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
2020-02-04 16:23:40 +00:00
WORKDIR /site