diff options
author | crupest <crupest@outlook.com> | 2022-12-02 13:38:28 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-12-02 13:42:05 +0800 |
commit | 7ba7dd5b0863ca7fd7e16e5df1cc2103eabf3dac (patch) | |
tree | 23bb6afe40f475261668d5e71e50bd067d69cdcb /docker/crupest-blog/Dockerfile | |
parent | f0e48b2957d2ff8d66bb8d8a0cec673f8b424558 (diff) | |
download | crupest-7ba7dd5b0863ca7fd7e16e5df1cc2103eabf3dac.tar.gz crupest-7ba7dd5b0863ca7fd7e16e5df1cc2103eabf3dac.tar.bz2 crupest-7ba7dd5b0863ca7fd7e16e5df1cc2103eabf3dac.zip |
Fix #11.
Diffstat (limited to 'docker/crupest-blog/Dockerfile')
-rw-r--r-- | docker/crupest-blog/Dockerfile | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/docker/crupest-blog/Dockerfile b/docker/crupest-blog/Dockerfile index 762a887..d8ff684 100644 --- a/docker/crupest-blog/Dockerfile +++ b/docker/crupest-blog/Dockerfile @@ -1,10 +1,8 @@ -FROM klakegg/hugo:ext-alpine-ci -# install git +FROM alpine:latest ARG CRUPEST_BLOG_UPDATE_INTERVAL=1d -RUN apk add --no-cache coreutils tini bash git ENV CRUPEST_BLOG_UPDATE_INTERVAL=${CRUPEST_BLOG_UPDATE_INTERVAL} -COPY daemon.bash /daemon.bash -COPY update.bash /update.bash +COPY install-hugo.bash daemon.bash update.bash /scripts/ +RUN apk add --no-cache coreutils gz tar tini bash git && /scripts/install-hugo && hugo version VOLUME [ "/public" ] ENTRYPOINT ["/sbin/tini", "--"] CMD [ "/daemon.bash" ] |