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.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 

25 lines
906 B

FROM golang:1.14-alpine AS build
RUN echo "" > /etc/apk/repositories && \
echo "http://ftp.halifax.rwth-aachen.de/alpine/latest-stable/main/" >> /etc/apk/repositories && \
echo "http://ftp.halifax.rwth-aachen.de/alpine/latest-stable/community/" >> /etc/apk/repositories && \
apk update && \
apk --no-cache add --no-cache gcc g++ musl-dev git
WORKDIR /hugo
RUN git clone --branch v0.68.3 https://github.com/gohugoio/hugo.git .
RUN go build -v --tags extended
FROM golang:1.14-alpine
COPY --from=build /hugo/hugo /usr/bin/hugo
RUN echo "" > /etc/apk/repositories && \
echo "http://ftp.halifax.rwth-aachen.de/alpine/latest-stable/main/" >> /etc/apk/repositories && \
echo "http://ftp.halifax.rwth-aachen.de/alpine/latest-stable/community/" >> /etc/apk/repositories && \
apk update && \
apk --no-cache add --no-cache ca-certificates libc6-compat libstdc++ git
VOLUME /site
WORKDIR /site