jlelse
/
docker-hugo
Archived
1
Fork 0
This commit is contained in:
Jan-Lukas Else 2020-03-01 13:06:51 +01:00
parent 0ed2337d2e
commit 929228280a
1 changed files with 7 additions and 7 deletions

View File

@ -1,23 +1,23 @@
FROM golang:1.13-alpine AS build
FROM golang:1.14-alpine AS build
RUN echo "" > /etc/apk/repositories && \
echo "http://ftp.halifax.rwth-aachen.de/alpine/v3.11/main/" >> /etc/apk/repositories && \
echo "http://ftp.halifax.rwth-aachen.de/alpine/v3.11/community/" >> /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.65.1 https://github.com/gohugoio/hugo.git .
RUN git clone --branch v0.65.3 https://github.com/gohugoio/hugo.git .
RUN go build -v --tags extended
FROM golang:1.13-alpine
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/v3.11/main/" >> /etc/apk/repositories && \
echo "http://ftp.halifax.rwth-aachen.de/alpine/v3.11/community/" >> /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