File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ ENV ACCESS_KEY=""
8
8
ENV SECRET_KEY=""
9
9
ENV MINIO_BUCKET=""
10
10
ENV DATABASE_URL=""
11
- ENV CRON_SCHEDULE="0 5 * * * "
11
+ ENV CRON_SCHEDULE=""
12
12
13
13
RUN apk add --no-cache postgresql-client minio-client
14
14
@@ -20,10 +20,4 @@ RUN chmod +x entrypoint.sh
20
20
21
21
RUN chmod +x run.sh
22
22
23
- RUN mkdir /etc/cron
24
-
25
- RUN echo "${CRON_SCHEDULE} /bin/sh /app/run.sh" > /etc/cron/crontab
26
-
27
- RUN crontab /etc/cron/crontab
28
-
29
23
ENTRYPOINT ["/app/entrypoint.sh" ]
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
+
3
+ mkdir /etc/cron
4
+
5
+ echo " ${CRON_SCHEDULE} /bin/sh /app/run.sh" > /etc/cron/crontab
6
+
7
+ crontab /etc/cron/crontab
8
+
2
9
echo " Waiting for cronjob to run your database backup ⏳ -> ${CRON_SCHEDULE} "
3
10
4
11
crond -f
You can’t perform that action at this time.
0 commit comments