You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

17 lines
578 B

FROM golang:1.15-alpine3.12 AS build
RUN apk add -X http://dl-cdn.alpinelinux.org/alpine/v3.12/main/ -X http://dl-cdn.alpinelinux.org/alpine/v3.12/community/ --no-cache gcc g++ musl-dev git
WORKDIR /hugo
RUN git clone --branch v0.76.5 https://github.com/gohugoio/hugo.git .
RUN go build -v --tags extended
FROM alpine:3.12
COPY --from=build /hugo/hugo /usr/bin/hugo
RUN apk add -X http://dl-cdn.alpinelinux.org/alpine/v3.12/main/ -X http://dl-cdn.alpinelinux.org/alpine/v3.12/community/ --no-cache ca-certificates libc6-compat libstdc++ git go
VOLUME /site
WORKDIR /site