We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06371cc commit e007636Copy full SHA for e007636
deploy/alpine-mirror/Containerfile
@@ -2,11 +2,9 @@ FROM docker.io/library/alpine:3.20
2
3
RUN apk add rsync
4
5
-# COPY ./synchroniser /app
6
-# COPY ./synchroniser/crontab /etc/cron.d/crontab
+COPY ./synchroniser /app
+RUN cat /app/crontab >> /etc/crontabs/root
7
8
-# RUN chmod +x /app/mirror.sh
9
-COPY ./synchroniser/mirror.sh /etc/periodic/15min
10
-RUN chmod +x /etc/periodic/15min/mirror.sh
+RUN chmod +x /app/mirror.sh
11
12
CMD ["crond", "-f"]
deploy/alpine-mirror/synchroniser/crontab
@@ -1,2 +1,2 @@
1
-# crontab
-*/5 * * * * root /app/mirror.sh
+# every 5 days
+* * */5 * * sh /app/mirror.sh
0 commit comments