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

18 lines
626 B
Docker
Raw Normal View History

2020-04-27 14:48:02 +00:00
FROM golang:1.14-alpine3.11 AS build
2020-01-16 07:53:19 +00:00
2020-04-27 14:48:02 +00:00
RUN apk add -X http://ftp.halifax.rwth-aachen.de/alpine/latest-stable/main/ -X http://ftp.halifax.rwth-aachen.de/alpine/latest-stable/community/ --no-cache gcc g++ musl-dev git
2020-01-16 07:53:19 +00:00
WORKDIR /hugo
2020-04-27 14:48:02 +00:00
RUN git clone --branch v0.69.2 https://github.com/gohugoio/hugo.git .
2020-01-16 07:53:19 +00:00
RUN go build -v --tags extended
2020-04-27 14:48:02 +00:00
FROM alpine:3.11
2020-01-16 07:53:19 +00:00
COPY --from=build /hugo/hugo /usr/bin/hugo
2020-04-27 14:48:02 +00:00
RUN apk add -X http://ftp.halifax.rwth-aachen.de/alpine/latest-stable/main/ -X http://ftp.halifax.rwth-aachen.de/alpine/latest-stable/community/ --no-cache ca-certificates libc6-compat libstdc++ git go
2020-01-16 07:53:19 +00:00
VOLUME /site
2020-02-04 16:23:40 +00:00
WORKDIR /site