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

This commit is contained in:
iyuu.cn committed 2020-07-31 09:17:57 +08:00
1 parent a744f5e785
commit c9fb5c6a6a
3 files changed
+12 -3

No files matched your search

+2 -1
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