diff options
author | crupest <crupest@outlook.com> | 2022-12-02 14:40:44 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-12-02 14:40:44 +0800 |
commit | 1d8bb2c0ea2d9469fba2cc7593cc59ae7ec60018 (patch) | |
tree | 9d2c858d08ed73c52b05146d3d7a1109904fd24b /docker/crupest-blog/Dockerfile | |
parent | 7c3be9959296293271241011a003fea54630c32c (diff) | |
download | crupest-1d8bb2c0ea2d9469fba2cc7593cc59ae7ec60018.tar.gz crupest-1d8bb2c0ea2d9469fba2cc7593cc59ae7ec60018.tar.bz2 crupest-1d8bb2c0ea2d9469fba2cc7593cc59ae7ec60018.zip |
Fix.
Diffstat (limited to 'docker/crupest-blog/Dockerfile')
-rw-r--r-- | docker/crupest-blog/Dockerfile | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/docker/crupest-blog/Dockerfile b/docker/crupest-blog/Dockerfile index 43bd5b4..30c4547 100644 --- a/docker/crupest-blog/Dockerfile +++ b/docker/crupest-blog/Dockerfile @@ -1,13 +1,8 @@ -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 --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 +RUN apk add --no-cache coreutils tini bash git hugo VOLUME [ "/public" ] ENTRYPOINT ["/sbin/tini", "--"] -CMD [ "/daemon.bash" ] +CMD [ "/scripts/daemon.bash" ] |