jlelse
/
docker-hugo
Archived
1
Fork 0
This repository has been archived on 2020-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
docker-hugo/Dockerfile

26 lines
906 B
Docker
Raw Normal View History

2020-03-01 12:06:51 +00:00
FROM golang:1.14-alpine AS build
2020-01-16 07:53:19 +00:00
2020-02-20 17:53:41 +00:00
RUN echo "" > /etc/apk/repositories && \
2020-03-01 12:06:51 +00:00
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 && \
2020-02-20 17:53:41 +00:00
apk update && \
apk --no-cache add --no-cache gcc g++ musl-dev git
2020-01-16 07:53:19 +00:00
WORKDIR /hugo
2020-04-03 19:49:59 +00:00
RUN git clone --branch v0.68.3 https://github.com/gohugoio/hugo.git .
2020-01-16 07:53:19 +00:00
RUN go build -v --tags extended
2020-03-01 12:06:51 +00:00
FROM golang:1.14-alpine
2020-01-16 07:53:19 +00:00
COPY --from=build /hugo/hugo /usr/bin/hugo
2020-02-20 17:53:41 +00:00
RUN echo "" > /etc/apk/repositories && \
2020-03-01 12:06:51 +00:00
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 && \
2020-02-20 17:53:41 +00:00
apk update && \
apk --no-cache add --no-cache ca-certificates libc6-compat libstdc++ git
2020-01-16 07:53:19 +00:00
VOLUME /site
2020-02-04 16:23:40 +00:00
WORKDIR /site