Update
This commit is contained in:
parent
0ed2337d2e
commit
929228280a
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 && \
|
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/latest-stable/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/community/" >> /etc/apk/repositories && \
|
||||||
apk update && \
|
apk update && \
|
||||||
apk --no-cache add --no-cache gcc g++ musl-dev git
|
apk --no-cache add --no-cache gcc g++ musl-dev git
|
||||||
|
|
||||||
WORKDIR /hugo
|
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
|
RUN go build -v --tags extended
|
||||||
|
|
||||||
FROM golang:1.13-alpine
|
FROM golang:1.14-alpine
|
||||||
|
|
||||||
COPY --from=build /hugo/hugo /usr/bin/hugo
|
COPY --from=build /hugo/hugo /usr/bin/hugo
|
||||||
|
|
||||||
RUN echo "" > /etc/apk/repositories && \
|
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/latest-stable/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/community/" >> /etc/apk/repositories && \
|
||||||
apk update && \
|
apk update && \
|
||||||
apk --no-cache add --no-cache ca-certificates libc6-compat libstdc++ git
|
apk --no-cache add --no-cache ca-certificates libc6-compat libstdc++ git
|
||||||
|
|
||||||
|
|
Reference in New Issue