更改Dockerfile,每5小时自动拉取最新代码

This commit is contained in:
iyuu.cn
2020-07-31 09:16:29 +08:00
parent a744f5e785
commit c9fb5c6a6a
3 changed files with 12 additions and 3 deletions

View File

@ -20,7 +20,8 @@ RUN set -ex \
&& apk del --purge *-dev \
&& rm -rf /var/cache/apk/* /tmp/* /usr/share/man \
&& echo "${TZ}" > /etc/timezone \
&& ln -sf /usr/share/zoneinfo/${TZ} /etc/localtime
&& ln -sf /usr/share/zoneinfo/${TZ} /etc/localtime \
&& echo '2 */6 * * * cd /IYUU && git fetch --all && git reset --hard origin/master' >> /etc/crontabs/root
WORKDIR /IYUU