aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-12-02 15:10:48 +0800
committercrupest <crupest@outlook.com>2022-12-02 15:10:48 +0800
commit2f0bb3d1c402260119f90415bc5c454213ef3cdb (patch)
tree3cabe7262311b6be5ddba0a7fe3d1c51fc7dfdc0
parent775f6de92cde31bf4955eb74cea03c8653b5339c (diff)
downloadcrupest-2f0bb3d1c402260119f90415bc5c454213ef3cdb.tar.gz
crupest-2f0bb3d1c402260119f90415bc5c454213ef3cdb.tar.bz2
crupest-2f0bb3d1c402260119f90415bc5c454213ef3cdb.zip
Hugo. v3.0
-rw-r--r--docker/crupest-blog/Dockerfile11
1 files changed, 2 insertions, 9 deletions
diff --git a/docker/crupest-blog/Dockerfile b/docker/crupest-blog/Dockerfile
index 66621bb..f9abc8b 100644
--- a/docker/crupest-blog/Dockerfile
+++ b/docker/crupest-blog/Dockerfile
@@ -1,16 +1,9 @@
FROM golang:alpine AS build-hugo
-RUN apk add --no-cache build-base git
-RUN CGO_ENABLED=1 go install --tags extended github.com/gohugoio/hugo@latest
-RUN /go/bin/hugo version
-
-FROM alpine:latest
-COPY --from=build-hugo /go/bin/hugo /usr/bin/
-# check hugo
-RUN hugo version
ARG CRUPEST_BLOG_UPDATE_INTERVAL=1d
+RUN apk add --no-cache build-base coreutils tini bash git
+RUN CGO_ENABLED=1 go install --tags extended github.com/gohugoio/hugo@latest && hugo version
ENV CRUPEST_BLOG_UPDATE_INTERVAL=${CRUPEST_BLOG_UPDATE_INTERVAL}
COPY daemon.bash update.bash /scripts/
-RUN apk add --no-cache coreutils tini bash git
VOLUME [ "/public" ]
ENTRYPOINT ["/sbin/tini", "--"]
CMD [ "/scripts/daemon.bash" ]