|
|
@ -1,25 +1,17 @@ |
|
|
|
FROM golang:1.14-alpine AS build |
|
|
|
FROM golang:1.14-alpine3.11 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 |
|
|
|
RUN apk add -X http://ftp.halifax.rwth-aachen.de/alpine/latest-stable/main/ -X http://ftp.halifax.rwth-aachen.de/alpine/latest-stable/community/ --no-cache gcc g++ musl-dev git |
|
|
|
|
|
|
|
WORKDIR /hugo |
|
|
|
|
|
|
|
RUN git clone --branch v0.68.3 https://github.com/gohugoio/hugo.git . |
|
|
|
RUN git clone --branch v0.69.2 https://github.com/gohugoio/hugo.git . |
|
|
|
RUN go build -v --tags extended |
|
|
|
|
|
|
|
FROM golang:1.14-alpine |
|
|
|
FROM alpine:3.11 |
|
|
|
|
|
|
|
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 |
|
|
|
RUN apk add -X http://ftp.halifax.rwth-aachen.de/alpine/latest-stable/main/ -X http://ftp.halifax.rwth-aachen.de/alpine/latest-stable/community/ --no-cache ca-certificates libc6-compat libstdc++ git go |
|
|
|
|
|
|
|
VOLUME /site |
|
|
|
WORKDIR /site |