diff options
author | crupest <crupest@outlook.com> | 2022-12-02 15:10:48 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-12-02 15:10:48 +0800 |
commit | 32becdfe3f929ce5d2885b882e2d7b61284fc980 (patch) | |
tree | 3cabe7262311b6be5ddba0a7fe3d1c51fc7dfdc0 | |
parent | 420fae5c1c1a5168c9bc14506081b7b3ee1d7f34 (diff) | |
download | crupest-32becdfe3f929ce5d2885b882e2d7b61284fc980.tar.gz crupest-32becdfe3f929ce5d2885b882e2d7b61284fc980.tar.bz2 crupest-32becdfe3f929ce5d2885b882e2d7b61284fc980.zip |
Hugo. v3.0
-rw-r--r-- | docker/crupest-blog/Dockerfile | 11 |
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" ] |