Browse Source

Update

master
Jan-Lukas Else 2 years ago
parent
commit
929228280a
  1. 14
      Dockerfile

14
Dockerfile

@ -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