File tree Expand file tree Collapse file tree 1 file changed +24
-24
lines changed Expand file tree Collapse file tree 1 file changed +24
-24
lines changed Original file line number Diff line number Diff line change 1
- FROM debian
2
-
3
- # Install mysql-client and other dependencies
4
- RUN apt-get update && apt-get install -y default-mysql-client cron
5
-
6
- # Create the backup directory
7
- RUN mkdir /backups
8
-
9
- # Copy the backup script
10
- COPY backup.sh /backup.sh
11
- COPY startup.sh /startup.sh
12
-
13
- # Set execute permissions for the scripts
14
- RUN chmod +x /backup.sh
15
- RUN chmod +x /startup.sh
16
-
17
- # Set the default cron schedule pattern -> run every two hours
18
- ENV CRON_SCHEDULE_PATTERN="0 */2 * * *"
19
-
20
- # Write logs to external database -> do not write by default
21
- ENV WRITE_LOGS=0
22
-
23
-
24
- # run the startup script
1
+ FROM debian
2
+
3
+ # Install mysql-client and other dependencies
4
+ RUN apt-get update && apt-get install -y default-mysql-client cron
5
+
6
+ # Create the backup directory
7
+ RUN mkdir /backups
8
+
9
+ # Copy the backup script
10
+ COPY backup.sh /backup.sh
11
+ COPY startup.sh /startup.sh
12
+
13
+ # Set execute permissions for the scripts
14
+ RUN chmod +x /backup.sh
15
+ RUN chmod +x /startup.sh
16
+
17
+ # Set the default cron schedule pattern -> run every two hours
18
+ ENV CRON_SCHEDULE_PATTERN="0 */2 * * *"
19
+
20
+ # Write logs to external database -> do not write by default
21
+ ENV WRITE_LOGS=0
22
+
23
+
24
+ # run the startup script
25
25
ENTRYPOINT ["bash" , "/startup.sh" ]
You can’t perform that action at this time.
0 commit comments