aboutsummaryrefslogtreecommitdiff
path: root/docker/crupest-blog/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'docker/crupest-blog/Dockerfile')
-rw-r--r--docker/crupest-blog/Dockerfile9
1 files changed, 7 insertions, 2 deletions
diff --git a/docker/crupest-blog/Dockerfile b/docker/crupest-blog/Dockerfile
index a7d00cb..43bd5b4 100644
--- a/docker/crupest-blog/Dockerfile
+++ b/docker/crupest-blog/Dockerfile
@@ -1,8 +1,13 @@
+FROM golang:alpine AS builder
+RUN go install -tags extended github.com/gohugoio/hugo@latest && /root/go/hugo version
+
FROM alpine:latest
ARG CRUPEST_BLOG_UPDATE_INTERVAL=1d
ENV CRUPEST_BLOG_UPDATE_INTERVAL=${CRUPEST_BLOG_UPDATE_INTERVAL}
-COPY install-hugo.bash daemon.bash update.bash /scripts/
-RUN apk add --no-cache coreutils gzip tar tini curl bash git && /scripts/install-hugo.bash
+COPY --from=builder /root/go/hugo /usr/bin
+RUN hugo version
+COPY daemon.bash update.bash /scripts/
+RUN apk add --no-cache coreutils tini bash git
VOLUME [ "/public" ]
ENTRYPOINT ["/sbin/tini", "--"]
CMD [ "/daemon.bash" ]