aboutsummaryrefslogtreecommitdiff
path: root/docker
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-12-02 13:54:46 +0800
committercrupest <crupest@outlook.com>2022-12-02 13:54:46 +0800
commite48986d206bef7a5177645ac19e1a996f9874a3c (patch)
tree2d9c5d897ccac14c7a6a992cadaba746f8f4406c /docker
parenta03f8cfac83ed84a9e284f4b47762e2785ab63c8 (diff)
downloadcrupest-e48986d206bef7a5177645ac19e1a996f9874a3c.tar.gz
crupest-e48986d206bef7a5177645ac19e1a996f9874a3c.tar.bz2
crupest-e48986d206bef7a5177645ac19e1a996f9874a3c.zip
Try to fix hugo.
Diffstat (limited to 'docker')
-rw-r--r--docker/crupest-blog/Dockerfile2
-rwxr-xr-xdocker/crupest-blog/install-hugo.bash2
2 files changed, 3 insertions, 1 deletions
diff --git a/docker/crupest-blog/Dockerfile b/docker/crupest-blog/Dockerfile
index 4790721..a7d00cb 100644
--- a/docker/crupest-blog/Dockerfile
+++ b/docker/crupest-blog/Dockerfile
@@ -2,7 +2,7 @@ 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 && hugo version
+RUN apk add --no-cache coreutils gzip tar tini curl bash git && /scripts/install-hugo.bash
VOLUME [ "/public" ]
ENTRYPOINT ["/sbin/tini", "--"]
CMD [ "/daemon.bash" ]
diff --git a/docker/crupest-blog/install-hugo.bash b/docker/crupest-blog/install-hugo.bash
index a79ad60..ff83b3c 100755
--- a/docker/crupest-blog/install-hugo.bash
+++ b/docker/crupest-blog/install-hugo.bash
@@ -6,3 +6,5 @@ VERSION=$(curl -s https://api.github.com/repos/gohugoio/hugo/releases/latest | g
url="https://github.com/gohugoio/hugo/releases/download/v${VERSION}/hugo_extended_${VERSION}_linux-amd64.tar.gz"
curl -fL -o /root/hugo.tar.gz "${url}"
tar -xzf /root/hugo.tar.gz -C /usr/bin hugo
+
+hugo version