jlelse
/
docker-hugo
Archived
1
Fork 0
This commit is contained in:
Jan-Lukas Else 2020-05-19 12:10:10 +02:00
parent c802259446
commit f09749a3db
1 changed files with 3 additions and 3 deletions

View File

@ -1,17 +1,17 @@
FROM golang:1.14-alpine3.11 AS build
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
RUN apk add -X http://dl-cdn.alpinelinux.org/alpine/v3.11/main/ -X http://dl-cdn.alpinelinux.org/alpine/v3.11/community/ --no-cache gcc g++ musl-dev git
WORKDIR /hugo
RUN git clone --branch v0.69.2 https://github.com/gohugoio/hugo.git .
RUN git clone --branch v0.71.0 https://github.com/gohugoio/hugo.git .
RUN go build -v --tags extended
FROM alpine:3.11
COPY --from=build /hugo/hugo /usr/bin/hugo
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
RUN apk add -X http://dl-cdn.alpinelinux.org/alpine/v3.11/main/ -X http://dl-cdn.alpinelinux.org/alpine/v3.11/community/ --no-cache ca-certificates libc6-compat libstdc++ git go
VOLUME /site
WORKDIR /site