Initial Commit

This commit is contained in:
Nicole Rappe
2023-09-21 23:10:31 -06:00
commit 263e390a59
5 changed files with 68 additions and 0 deletions

18
Dockerfile Normal file
View File

@ -0,0 +1,18 @@
FROM ubuntu:latest
# Install necessary packages
RUN apt-get update && \
apt-get install -y git curl cron rsync
# Add script and cronjob
COPY repo_watcher.sh /root/Repo_Watcher/repo_watcher.sh
COPY crontab.txt /crontab.txt
# Make script executable
RUN chmod +x /root/Repo_Watcher/repo_watcher.sh
# Apply cron job
RUN crontab /crontab.txt
# Start cron in foreground
CMD ["cron", "-f"]