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.

18 lines
578 B

  1. FROM golang:1.15-alpine3.12 AS build
  2. 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
  3. WORKDIR /hugo
  4. RUN git clone --branch v0.76.4 https://github.com/gohugoio/hugo.git .
  5. RUN go build -v --tags extended
  6. FROM alpine:3.12
  7. COPY --from=build /hugo/hugo /usr/bin/hugo
  8. 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
  9. VOLUME /site
  10. WORKDIR /site