aboutsummaryrefslogtreecommitdiff
path: root/docker/crupest-blog/Dockerfile
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-12-02 14:02:11 +0800
committercrupest <crupest@outlook.com>2022-12-02 14:02:11 +0800
commit165afe9fab48d7531ebc84747badfa4eac292407 (patch)
tree77acf5f9b4364ab407400244711b9bf09b4d8713 /docker/crupest-blog/Dockerfile
parent2d938f13168e7e68d902d31f7e7565c55bc1a0d0 (diff)
downloadcrupest-165afe9fab48d7531ebc84747badfa4eac292407.tar.gz
crupest-165afe9fab48d7531ebc84747badfa4eac292407.tar.bz2
crupest-165afe9fab48d7531ebc84747badfa4eac292407.zip
Try to fix hugo. v2
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" ]