jlelse
/
docker-hugo
Archived
1
Fork 0

Use faster Alpine mirror

This commit is contained in:
Jan-Lukas Else 2020-02-20 18:53:41 +01:00
parent 67dd332879
commit 0ed2337d2e
1 changed files with 10 additions and 2 deletions

View File

@ -1,6 +1,10 @@
FROM golang:1.13-alpine AS build
RUN apk update && apk add --no-cache gcc g++ musl-dev git
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 && \
apk update && \
apk --no-cache add --no-cache gcc g++ musl-dev git
WORKDIR /hugo
@ -11,7 +15,11 @@ FROM golang:1.13-alpine
COPY --from=build /hugo/hugo /usr/bin/hugo
RUN apk update && apk add --no-cache ca-certificates libc6-compat libstdc++ git
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 && \
apk update && \
apk --no-cache add --no-cache ca-certificates libc6-compat libstdc++ git
VOLUME /site
WORKDIR /site