diff --git a/gmi/docker/Dockerfile b/gmi/docker/Dockerfile index 6789bdb..92571bc 100644 --- a/gmi/docker/Dockerfile +++ b/gmi/docker/Dockerfile @@ -2,14 +2,15 @@ FROM alpine:latest RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/repositories \ && sed -i 'a https://mirrors.tuna.tsinghua.edu.cn/alpine/edge/testing' /etc/apk/repositories \ - && apk add agate git \ + && apk add agate git python3 \ && touch /var/log/git.log -RUN git clone https://github.com/dongdigua/dongdigua.github.io.git --depth 1 +RUN git clone https://github.com/dongdigua/dongdigua.github.io.git --depth 1 \ + && echo "0 * * * * run-parts /etc/periodic/hourly" > /var/spool/cron/crontabs/root COPY run-wrapper.sh . # https://weinan.io/2019/04/06/cron.html -COPY update-git.sh /etc/periotic/daily/ +COPY update-git.sh /etc/periotic/hourly/ # for testing purpose only # RUN mkdir /etc/periodic/1min \ @@ -17,5 +18,4 @@ COPY update-git.sh /etc/periotic/daily/ # >> /var/spool/cron/crontabs/root # COPY update-git.sh /etc/periodic/1min/ - CMD [ "./run-wrapper.sh" ] diff --git a/images/nuclear.png b/images/nuclear.png deleted file mode 100644 index 28c4802..0000000 Binary files a/images/nuclear.png and /dev/null differ diff --git a/index.gmi b/index.gmi index 028b6ee..2665d47 100644 --- a/index.gmi +++ b/index.gmi @@ -2,5 +2,5 @@ (a fancy homepage coming soon) -=> posts posts +=> posts.gmi posts => https://dongdigua.github.io HyperTextMachineLearning site diff --git a/index.html b/index.html index 73936f2..9067674 100644 --- a/index.html +++ b/index.html @@ -6,7 +6,7 @@ ~dongdigua - +