Add cron job setup and entrypoint script for scheduled task execution
This commit is contained in:
11
entrypoint.sh
Normal file
11
entrypoint.sh
Normal file
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Load the cron job
|
||||
crontab /app/crontab
|
||||
|
||||
# Create the log file and set permissions
|
||||
touch /var/log/cron.log
|
||||
chmod 0666 /var/log/cron.log
|
||||
|
||||
# Start cron in the foreground
|
||||
cron -f
|
||||
Reference in New Issue
Block a user