docker: apk --no-cache, git checkout

This commit is contained in:
dongdigua 2023-07-09 18:59:02 +08:00
parent 9ffdecb388
commit 069ff4817c
2 changed files with 3 additions and 1 deletions

View File

@ -2,7 +2,7 @@ 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 gmid git python3 perl \
&& apk add --no-cache gmid git python3 perl \
&& touch /var/log/git.log \
&& echo "0 * * * * run-parts /etc/periodic/hourly" > /var/spool/cron/crontabs/root

View File

@ -4,4 +4,6 @@ cd /dongdigua.github.io
git pull --rebase >> /var/log/git.log 2>&1
python misc/mdlist2gmi.py > posts.gmi
cp -r gmi/docker/cgi .
rm index.gmi
git checkout -- index.gmi
pkill -HUP gmid