This commit is contained in:
Nicole Rappe 2024-01-07 07:23:21 -07:00
parent a570ba51e5
commit 5415f58c33
2 changed files with 6 additions and 5 deletions

View File

@ -5,10 +5,11 @@ FROM alpine:latest
RUN apk --no-cache add git curl rsync
# Add script
COPY repo_watcher.sh /root/Repo_Watcher/repo_watcher.sh
COPY repo_watcher.sh /repo_watcher.sh
RUN chmod +x /repo_watcher.sh
# Make script executable
RUN chmod +x /root/Repo_Watcher/repo_watcher.sh
#Create Directory to store Repositories
RUN mkdir -p /root/Repo_Watcher
# Start script (Alpine uses /bin/sh instead of /bin/bash)
CMD ["/bin/sh", "-c", "/root/Repo_Watcher/repo_watcher.sh"]
CMD ["/bin/sh", "-c", "/repo_watcher.sh"]

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh
# Function to process each repo-destination pair
process_repo() {